简体   繁体   English

在Heroku Rails Cedar 14上安装ImageMagick Buildpack

[英]Installing ImageMagick Buildpack on Heroku Rails Cedar 14

I am trying to install this 3rd party Heroku buildpack for ImageMagick: https://github.com/ello/heroku-buildpack-imagemagick 我正在尝试为ImageMagick安装此第三方Heroku buildpack: https : //github.com/ello/heroku-buildpack-imagemagick

I tried running this command: 我尝试运行此命令:

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

Then I repushed my app to the server, and did a restart. 然后,我将应用程序重新推送到服务器,然后重新启动。 The app didn't work. 该应用程序无法正常运行。 So I tried restarting the dyno using this command: 因此,我尝试使用以下命令重新启动dyno:

heroku ps:scale web=1

I get this response, and cannot run the app unless I remove the ImageMagick buildpack: 我收到此响应,除非删除ImageMagick buildpack,否则无法运行该应用程序:

Scaling dynos... failed ! 缩放测功机...失败! Couldn't find that formation. 找不到那个阵型。

Any idea how I can get ImageMagick properly installed? 知道如何正确安装ImageMagick吗?

I ran into this yesterday. 我昨天碰到这个。 I don't know about your specific instance but in mine, I had added this build pack after my others. 我不知道您的特定实例,但在我的实例中,我已在其他实例之后添加了此构建包。 It needed to be before. 它必须在之前。

In addition, I needed to purge the cache. 另外,我需要清除缓存。 My remote is called production , so I did the following: 我的遥控器称为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

Then I pushed my repo to --remote production and it worked. 然后,我将我的存储库推送到--remote production ,它起作用了。

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

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