14上安装ImageMagick

14上安装ImageMagick

本文介绍了在Heroku Rails Cedar 14上安装ImageMagick Buildpack的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为ImageMagick安装第三方Heroku buildpack:

I am trying to install this 3rd party Heroku buildpack for ImageMagick: https://github.com/ello/heroku-buildpack-imagemagick

我尝试运行此命令:

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

然后我将我的应用程序复制到服务器,并重新启动。该应用程序无法正常工作。所以我尝试使用此命令重新启动dyno:

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:

heroku ps:scale web=1

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

I get this response, and cannot run the app unless I remove the ImageMagick buildpack:

缩放dynos ......失败了!无法找到那个阵型。

我知道如何正确安装ImageMagick吗?

Any idea how I can get ImageMagick properly installed?

推荐答案

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

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.

此外,我需要清除缓存。我的遥控器名为 production ,因此我执行了以下操作:

In addition, I needed to purge the cache. My remote is called production, so I did the following:

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.

这篇关于在Heroku Rails Cedar 14上安装ImageMagick Buildpack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 17:45