Heroku - how to enable gd on heroku php application?

后端 未结 2 513
孤独总比滥情好
孤独总比滥情好 2021-01-03 19:21

Heroku said:

The following built-in extensions have been built “shared” and can be enabled through composer.json (internal identifier names given in

相关标签:
2条回答
  • 2021-01-03 19:58

    Try it with:

    {
        "require": {
            "ext-gd": "*"
        }
    }
    

    see here using-optional-extensions

    0 讨论(0)
  • 2021-01-03 20:06

    Just adding GD as dependency (require) in composer does not load the extension GD. It just tells that this package needs gd enabled. "ext-gd" is just a virtual package, not existing for real.

    you have to install it on your platform.

    see here composer - platform-packages

    0 讨论(0)
提交回复
热议问题