deploying rails3 apps with bundler and phusion passenger: .bundle dir not found

那年仲夏 提交于 2019-11-28 20:50:16

i think the command you are searching for is

bundle pack

which will move your gems from the .bundle directory to the vendor/cache.

see yehuda katz' posting about bundler workflows on his site: http://yehudakatz.com/2010/02/09/using-bundler-in-real-life/

more information on the bundler directory: you can add in you application.rb file the following line, which will change the bundler dir for phusion passenger:

ENV['BUNDLER_HOME']="/home/or-wherever-you-want-to-point-it"

You shouldn't need to "pack" your gems.

I've spent a week trying everything. Following ALL of the troubleshooting steps here finally resolved it:

https://github.com/carlhuda/bundler/blob/master/ISSUES.md

Good luck!

Terry Ray

Been fighting this one also. I've found that doing a

bundle --deployment

does the trick. See the post here: Rails 3: Passenger can't find git gems installed by bundler

Seems a bit hacky to me however. Would like to know if this is an issue with Passenger or bundler? Is it version specific, etc...

misteryfan

This gem bundler site said that for deployment you may use:

bundle install --deployment
Niket

try

bundle install vendor/bundler

What did helped me exactly on: 1. CentOS 6.x 64bit 2. Bitnami stack bundle with spree 1.3.1

cd SPREE_APP_ROOT_AKA_RAILS_ROOT
/opt/spree-1.3.1-0/ruby/bin/bundle install

As a result gem appeared in the root. But it's not good. It should go to vendor/cache and other underlying folders.

The I run:

/opt/spree-1.3.1-0/ruby/bin/bundle package --all 

Option --all is for packaging "git" gems.

Restart passenger and go on:)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!