Hi, I'm seeing issues when I run "cap deploy". When the script reaches the stage of running bundle, it reports:
rbenv: bundle: command not found As you can tell, I'm using rbenv instead of rvm. Here is a link to my deploy.rb: https://gist.github.com/stantona/ff10f0beaef4a16e6a83 I'm also using a rbenv recipe to install rbenv, after which it runs "gem install bundler": https://gist.github.com/stantona/24f7408f6423c162d7c6 When the above task is run, it reports that bundler gem was installed successfully. I can confirm that it was installed by ssh into server and running "which -a bundle", returning "/home/vagrant/.rbenv/shims/bundle". Where I am confused is when I run bundle in my home directory, it finds the bundler command no problem, since it prints out "Bundler::GemfileNotFound". However, when I run it anywhere outside my home directory (say /mnt), it can't find the command and prints out: "rbenv: bundle: command not found". The same error that "cap:deploy" is reporting. I am deploying to /mnt (as defined in deploy.rb) This doesn't make sense to me because I can still do "which -a bundle" (inside /mnt), returning "/home/vagrant/.rbenv/shims/bundle". If I run "gem install bundler" from /mnt, the shell can now find the command, despite the fact that when I run "which -a bundle", it still returns the single "/home/vagrant/.rbenv/shims/bundle". NB when I run "gem install bundler" manually I'm able to deploy no problem. Here is a gist of my gem environment (running "gem env"): https://gist.github.com/stantona/1a487d030788f66e28c4 This has really got me stumped, any help would be appreciated. Thanks. -- -- * 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 --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
