在Heroku Rails Cedar 14上安装ImageMagick Buildpack

时间:2016-03-06 20:46:11

标签: ruby-on-rails heroku imagemagick

我正在尝试为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,否则无法运行该应用程序:

  

缩放dynos ......失败了!无法找到这种形态。

知道如何正确安装ImageMagick吗?

1 个答案:

答案 0 :(得分:0)

我昨天碰到了这个。我不知道你的具体实例,但在我的实例中,我已经在我的其他人之后添加了这个构建包。它需要在此之前。

另外,我需要清除缓存。我的遥控器名为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并且它有效。