I have a basic Rails 3 application that runs locally in my development box, but you want to check the deployment at an early stage to make sure everything works. I am using Capistrano for deployment.
When I run cap deploy (after all the necessary configuration), it breaks off this command with this error:
[...] * executing 'bundle:install' * executing "bundle install --gemfile /var/www/trex/releases/20100917172521/Gemfile --path /var/www/trex/shared/bundle --deployment --quiet --without development test" servers: ["www.[my domain].com"] [www.[my domain].com] executing command ** [out :: www.[my domain].com] sh: bundle: command not found command finished [...]
So it looks like it cannot find the bundle command on the server.
However, when I log in to the server ...
$ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] $ rails -v Rails 3.0.0 $ bundle -v Bundler version 1.0.0
... the bundle command is working fine.
What could be wrong?
-
(Also, for completeness :)
$ which ruby ~/.rvm/rubies/ruby-1.9.2-p0/bin/ruby $ which rails ~/.rvm/gems/ruby-1.9.2-p0/bin/rails $ which bundle ~/.rvm/gems/ruby-1.9.2-p0/bin/bundle
ruby-on-rails ruby-on-rails-3 bundler capistrano
TJ Schuck Sep 17 '10 at 17:50 2010-09-17 17:50
source share