Reputation: 3162
Im trying to deploy my Rails app on dreamhost shared server. Been following this article
http://railstips.org/blog/archives/2008/12/14/deploying-rails-on-dreamhost-with-passenger/
But in the last step ,
cap deploy:migrations
i get this error
Could not find rake-0.9.2.2 in any of the sources
First time I am trying to deploy rails app ever so im pretty lost..
Upvotes: 1
Views: 455
Reputation: 1152
This error happens because the gem binaries are not on the path.
Modify your config/deploy.rb
file by adding the following line:
set :default_environment, {
'PATH' => "/home/YOUR_USER_NAME/.gems/bin:/usr/lib/ruby/gems/1.8/bin/:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
}
This will add your gems to the path.
You can verify that this works by running cap shell
, and typing which rake
. It should return the path of the Rake binary if it worked.
Upvotes: 1