开发者

rmagick on Heroku with Bundler

开发者 https://www.devze.com 2023-03-11 20:56 出处:网络
I am getting this error: /app/che.rb:6:in `require\': no such file to load -- rmagick (LoadError) from /app/che.rb:6:in `<top (required)>\'

I am getting this error:

/app/che.rb:6:in `require': no such file to load -- rmagick (LoadError)
from /app/che.rb:6:in `<top (required)>'

It's 开发者_开发技巧a sintra app: https://github.com/rtacconi/cheguevarafx/blob/master/che.rb The Gemfile: https://github.com/rtacconi/cheguevarafx/blob/master/Gemfile All files of the app: https://github.com/rtacconi/cheguevarafx

I tried many ways without success. It seems that during the deployment is installed, but it is not.

Please advise.


use the following Gemfile

source "http://rubygems.org"

gem 'rack'
gem 'sinatra'
gem "rmagick", "2.12.2", :require => "RMagick"

and include rmagick with:

require 'RMagick'
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号