有人可以告诉我如何自定义官方buildpack heroku/php
以添加php5-imagick扩展名吗?
由于
答案 0 :(得分:2)
You do not need to customize the buildpack. The extension is already supported.
Just follow the instructions in the docs, https://devcenter.heroku.com/articles/php-support#extensions
Your composer.json
needs ext-imagick
in the require
section; the next deploy will then have the extension enabled automatically.
答案 1 :(得分:0)
将imagick
添加到您的composer.json
文件中,如Heroku PHP支持文档中所述:https://devcenter.heroku.com/articles/php-support