> You could try using the full path to the bundle script in your Capfile, or
> adding the gem bin directory to your $PATH. I think using the full path of
> bundle would be the less hacky way to do it, something like this:
>
> namespace :bundler do
> task :bundle_new_release do
>
> run "cd #{release_path} && /var/lib/gems/1.9.1/bin/bundle install
> --without test"
>
> end
> end
Using the cap shell I did a simple echo $PATH to determine the path, which was
different than the path created for me when I did a normal ssh login. I fixed
it by simply adding it to $PATH in my ~/.bashrc file for the deployer user,
like so:
if [[ $PATH != */var/lib/gems* ]]
then
export PATH=$PATH:/var/lib/gems/1.9.1/bin
fi
This fixed the issue for me. Sorry to post an issue on the capistrano boards
about something so trivial and obviously something bundler didn't handle, but
there you go. Thanks again,
BJ
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en