RMagick + Rails + Heroku? [英] RMagick + Rails + Heroku?

查看:89
本文介绍了RMagick + Rails + Heroku?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚如何在我的应用上获得rmagick,然后让它在Heroku上运行?

>确定以便将来参考继承人需要完成的工作。



在您的.gems文件中,您需要:

  rmagick 

然后在你的config / environment.rb文件中你需要:

  config.gemrmagick,
:lib => RMagick

因为它已经预装了heroku, $ b

I'm trying to figure out how to get rmagick on my app, and then make it work on Heroku?

解决方案

Ok so for future reference heres what needs to be done.

In your .gems file you need:

rmagick

and then in your config/environment.rb file you need:

config.gem "rmagick",
:lib => "RMagick" 

Because its already preinstalled with heroku - this does the trick.

这篇关于RMagick + Rails + Heroku?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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