开发者

Deploying rails, paperclip error, no such file to load -- cocaine

Using the paperclip-cloudfiles fork of paperclip:

gem 'paperclip-cloudfiles', '~>开发者_开发问答;2.3', :require => 'paperclip'

Using passenger and I get the following load error: no such file to load -- cocaine

Key part of stack trace:

.rvm/gems/ruby-1.9.2-p180/gems/paperclip-cloudfiles-2.3.10.1/lib/paperclip.rb   43  in `'

Paperclip works fine locally on the development server. Haven't been able to find any reference to this problem. Any ideas?


I would add

gem require 'cocaine'

to your Gemfile then run bundle install again.

Extra credit . . . add the dependency to the gem itself and send it back to the community at large.


Updated: per this issue, you should specify version 0.3.2 of cocaine or Paperclip will break. Paperclip currently relies on an older Cocaine API, so specifying the version (0.3.2) in the gemfile in necessary or paperclip won't work.

gem "cocaine", "0.3.2"


[SOLVED]: Downgraded paperclip-cloudfiles to '2.3.8' and it works. Must be a problem with the current version.


Have you already run bundle install on your production server?


You can simply install the missing cocaine gem by 'gem install cocaine' and everything works.


This might be related to this issue. Paperclip currently relies on an older Cocaine API, so specifying the version (0.3.2) in the gemfile in necessary or paperclip won't work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜