capistrano / rvm

MIT License
140 stars 47 forks source link

Bundler no longer installed by default #65

Open chewi opened 9 years ago

chewi commented 9 years ago

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.

emirkin commented 9 years ago

+1

leonardteo commented 9 years ago

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
leonardteo commented 9 years ago

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
john-999 commented 9 years ago

+1 (thanks, @leonardteo)

guitaroff commented 9 years ago

+1 Thanks! @leonardteo

AlexEscohotado commented 7 years ago

thank you @leonardteo ;)

paulleoniuk commented 7 years ago

Thanks a lot @leonardteo !