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

前端 未结 6 2016
伪装坚强ぢ
伪装坚强ぢ 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 09:56

    You can use bundle install --path vendor/bundle to install the gems locally, instead of into system gems.

    If you want to keep using system gems, though, it's just one line in your Apache configuration to tell Passenger where to find your system gems:

    SetEnv GEM_HOME /Users/bob/.bundle
    

    There's a slightly more elaborate writeup on my blog at Using Passenger with GEM_HOME set

提交回复
热议问题