开发者

Rails Beta3 & PaperClip & Passenger Bundler::PathError

开发者 https://www.devze.com 2022-12-31 02:29 出处:网络
So I\'m going around in circles with this - I\'m using a fork of the Paperclip Rails gem to get it to work with Rails3. Works fine on my OSX box with Passenger. But on my server (CentOS 5) I get this

So I'm going around in circles with this - I'm using a fork of the Paperclip Rails gem to get it to work with Rails3. Works fine on my OSX box with Passenger. But on my server (CentOS 5) I get this this error:

git://github.com/lmumar/paperclip.git (at rails3) is not checked out. Please runbundle install(Bundler::PathError)Blockquote

I tried Bundle Pack, but that doesnt pack gems from github. I read a post about setting the parh to the BUNDLE_HOME in my application.rb file which I tried:

ENV['BUNDLER_HOME']="~/.bundle/ruby/1.8/bundler/gems/"

But that doesnt work. Any ideas anyone开发者_StackOverflow? I dont know what else to do and have no idea how to debug or trace the problem further :(

Passenger version 2.2.11.

thanks.


OK, well, I dont really fully understand how to set the paths, but in the end I did:

export BUNDLE_PATH=$GEM_HOME

Despite much frackin' around I couldnt set the BUNDLE_PATH to the location in my home directory where it was installing the gem from Github.

So after I ran the above I just did 'bundle install' again and it's working. :/

0

精彩评论

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

关注公众号