No such file to load bundler error for Rails 3

前端 未结 6 1269
粉色の甜心
粉色の甜心 2020-12-29 13:45

I have a Rails 3 app ready for staging.

I haven\'t got a VPS host set up yet. As I was planning to have everything on shared host for the first few months.

6条回答
  •  灰色年华
    2020-12-29 14:38

    For me, this turned out to be an issue with the passenger_ruby directive that passenger-install-nginx-module spits out at the end of installation. It was missing the gemset name in the path to the ruby.

    This works: (the fix)

    passenger_ruby /Users/dzello/.rvm/wrappers/ruby-1.9.2-p0@rails3/ruby;
    

    This did not: (what passenger-install-nginx-module spits out)

    passenger_ruby /Users/dzello/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
    

    Note the passenger_ruby line does not include the proper gem path - the @rails3 (rails3 is the gemset name) portion is missing, even though it got it right for passenger root.

提交回复
热议问题