Open chewi opened 9 years ago
+1
Hi guys, how do you guys even get capistrano-rvm to work now? I've installed bundler on the server, but I still get:
INFO [e79d5fe1] Running /usr/local/rvm/bin/rvm 2.1.4@artstation-cdn-edge do bundle install --path /var/www/artstation-cdn-edge/shared/bundle --without development test --deployment --quiet as ninja@canada1.artstation.rocks
DEBUG [e79d5fe1] Command: cd /var/www/artstation-cdn-edge/releases/20150418005508 && /usr/local/rvm/bin/rvm 2.1.4@artstation-cdn-edge do bundle install --path /var/www/artstation-cdn-edge/shared/bundle --without development test --deployment --quiet
DEBUG [e79d5fe1] /usr/local/rvm/scripts/set: line 19: exec: bundle: not found
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as ninja@canada1.artstation.rocks: bundle exit status: 127
bundle stdout: Nothing written
bundle stderr: /usr/local/rvm/scripts/set: line 19: exec: bundle: not found
SSHKit::Command::Failed: bundle exit status: 127
bundle stdout: Nothing written
bundle stderr: /usr/local/rvm/scripts/set: line 19: exec: bundle: not found
Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as ninja@canada1.artstation.rocks: bundle exit status: 127
bundle stdout: Nothing written
bundle stderr: /usr/local/rvm/scripts/set: line 19: exec: bundle: not found
Ah I just solved my issue. If you are using a gemset, you must make sure to install bundler for that gemset otherwise rvm doesn't find it.
rvm 2.1.4@gemset-name do gem install bundler
+1 (thanks, @leonardteo)
+1 Thanks! @leonardteo
thank you @leonardteo ;)
Thanks a lot @leonardteo !
Bundler is not longer installed by RVM by default as of rvm/rvm@dc07790042d78c525d7d52616c78cb2d55c0e764. I think users would expect Capistrano to just work after installing RVM so perhaps Capistrano should ensure that Bundler is installed.