Rails 3: Passenger can't find git gems installed by bundler

前端 未结 6 2013
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 09:41

Rails 3.0.0, Passenger 2.2.15:

  • Create a new Rails project
  • Add gem \'paperclip\', :git => \'git://github.com/lmumar/paperclip.git\', :branch =
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 10:00

    I had the same problem and it was due to a rights issue with RVM.

    The user that run the web server can not check if GIT gem is available. As "Passenger" using the web user to run, it can not do this check.

    The solution I found was to add web user to rvm group:

    usermod -a -G rvm apache
    

    I hope this will help some other people that don't want to have GEM deployed into "vendor/bundle".

提交回复
热议问题