RMagick + Rails + Heroku?

后端 未结 6 764
滥情空心
滥情空心 2021-01-31 05:46

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

6条回答
  •  清歌不尽
    2021-01-31 06:34

    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.

提交回复
热议问题