Heroku构建应用程序失败:加载gem'graphicsmagick'时出错 [英] Heroku building app fail: error to load gem 'graphicsmagick'

查看:67
本文介绍了Heroku构建应用程序失败:加载gem'graphicsmagick'时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将Rails应用程序推送到heroku时,它总是失败.在"Build App"阶段,日志显示以下消息:

when I push my rails app to heroku it always fails. On the stage "Build App" the logs show me following message:

正在检查gm ...否!耙子流产了!!Bundler :: GemRequireError:尝试加载gem'graphicsmagick'时出错.

checking for gm... no ! rake aborted! ! Bundler::GemRequireError: There was an error while trying to load the gem 'graphicsmagick'.

我在Gemfile中需要此gem,但我不知道为什么在heroku上构建应用程序总是会失败.可以在LocalCI上运行并在CircleCI上运行.有人有类似的问题吗?

I have required this gem in the Gemfile and I don't know why building app on heroku always fails. Local running and running on CircleCI are ok. Did someone have similar issue?

请让我知道我错过了什么.谢谢.

Please let me know what I've missed. Thank you.

推荐答案

您是否包含graphicsmagick Buildpack?转到Heroku仪表板上的设置选项卡,然后将此URL添加到您的buildpacks中: https://github.com/mcollina/heroku-buildpack-graphicsmagick.git

Do you have the graphicsmagick Buildpack included? Go to the settings tab on Heroku dashboard and add this url to your buildpacks: https://github.com/mcollina/heroku-buildpack-graphicsmagick.git

这篇关于Heroku构建应用程序失败:加载gem'graphicsmagick'时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆