【问题标题】:Installing ImageMagick Buildpack on Heroku Rails Cedar 14在 Heroku Rails Cedar 14 上安装 ImageMagick Buildpack
【发布时间】:2016-06-20 07:54:41
【问题描述】:
我正在尝试为 ImageMagick 安装这个第 3 方 Heroku buildpack:https://github.com/ello/heroku-buildpack-imagemagick
我尝试运行这个命令:
heroku buildpacks:add https://github.com/ello/heroku-buildpack-imagemagick
然后我将我的应用程序重新推送到服务器,并重新启动。该应用程序没有工作。所以我尝试使用这个命令重新启动测功机:
heroku ps:scale web=1
我收到此响应,除非我删除 ImageMagick buildpack,否则无法运行该应用程序:
缩放测功机...失败!找不到那个阵型。
知道如何正确安装 ImageMagick 吗?
【问题讨论】:
标签:
ruby-on-rails
heroku
imagemagick
【解决方案1】:
我昨天遇到了这个。我不知道你的具体实例,但在我的实例中,我在其他实例之后添加了这个构建包。它必须在之前。
此外,我需要清除缓存。我的遥控器叫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
然后我将我的 repo 推送到 --remote production,它成功了。