添加php5-imagick到Heroku php buildpack

时间:2016-04-21 20:18:11

标签: php heroku imagick heroku-api

有人可以告诉我如何自定义官方buildpack heroku/php以添加php5-imagick扩展名吗?

由于

2 个答案:

答案 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