Deploying rails3 applications with package and phusion passenger: .bundle dir not found

I am trying to deploy rails3 applications using the latest phusion passenger 2.2.11 and ruby-enterprise-1.8.7-2010.01. I am using bundler, but the passenger does not seem to be able to find the .bundle directory.

error message:

git://github.com/rails/rails.git (at master) is not checked out. Please run `bundle install` (Bundler::PathError) 

where can i install .bundle? Where can I tell the passenger which package to use? any clues?

thank!

+10
ruby-on-rails ruby-on-rails-3 passenger bundler
Mar 22 '10 at 17:34
source share
6 answers

I think the team you are looking for is

 bundle pack 

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

see the publication of yehuda katz on workflows on his website: http://yehudakatz.com/2010/02/09/using-bundler-in-real-life/

additional information about the bundler directory: you can add the following line to the application.rb file that will change the bundler directory for the phusion passenger:

 ENV['BUNDLER_HOME']="/home/or-wherever-you-want-to-point-it" 
+19
Mar 22 '10 at 17:52
source share

You do not need to “pack” your gems.

I spent a week on everything. Following all troubleshooting steps, the following was finally resolved:

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

Good luck

+4
Dec 07 '11 at 23:45
source share

Also struggled with this. I found that doing

 bundle --deployment 

does the trick. See Post here: Rails 3: Passenger cannot find git gems installed by installer

Seems a bit hacked to me. I would like to know if this is a problem with the Passenger or the supplier? It depends on the version, etc.

+2
Jan 20 '12 at 16:19
source share

This gem provider website said that for deployment you can use:

 bundle install --deployment 
0
Mar 07 2018-12-12T00:
source share

try

 bundle install vendor/bundler 
0
Jun 22 '12 at 12:21
source share

Which helped me a lot: 1. CentOS 6.x 64bit 2. Bit-stick package 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, a stone appeared in the root. But this is not good. It should go to the provider / cache and other base folders.

I run:

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

Option - all designed to pack git gemstones.

Restart the passenger and continue :)

0
Jan 23 '13 at 10:40
source share



All Articles