繁体   English   中英

在Heroku Rails Cedar 14上安装ImageMagick Buildpack

[英]Installing ImageMagick Buildpack on Heroku Rails Cedar 14

我正在尝试为ImageMagick安装此第三方Heroku buildpack: https : //github.com/ello/heroku-buildpack-imagemagick

我尝试运行此命令:

heroku buildpacks:add https://github.com/ello/heroku-buildpack-imagemagick

然后,我将应用程序重新推送到服务器,然后重新启动。 该应用程序无法正常运行。 因此,我尝试使用以下命令重新启动dyno:

heroku ps:scale web=1

我收到此响应,除非删除ImageMagick buildpack,否则无法运行该应用程序:

缩放测功机...失败! 找不到那个阵型。

知道如何正确安装ImageMagick吗?

我昨天碰到这个。 我不知道您的特定实例,但在我的实例中,我已在其他实例之后添加了此构建包。 它必须在之前。

另外,我需要清除缓存。 我的遥控器称为production ,所以我做了以下工作:

heroku plugins:install https://github.com/heroku/heroku-repo.git
heroku repo:purge_cache --remote production
heroku buildpacks:remove https://github.com/ello/heroku-buildpack-imagemagick --remote production
heroku buildpacks:add --index 1 https://github.com/ello/heroku-buildpack-imagemagick --remote production

然后,我将我的存储库推送到--remote production ,它起作用了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM