Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
607 views
in Technique[技术] by (71.8m points)

ruby on rails - deploying rails3 apps with bundler and phusion passenger: .bundle dir not found

i am trying to deploy rails3 apps with the latest phusion passenger 2.2.11 and ruby-enterprise-1.8.7-2010.01. i am using bundler, but passenger seems to not be able to find the .bundle dir.

error message:

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

where do i install the .bundle? where do i tell passenger which bundle to use? any hints?

thanks!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...