rvm icon indicating copy to clipboard operation
rvm copied to clipboard

Bundler no longer installed by default

Open chewi opened this issue 10 years ago • 7 comments

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.

chewi avatar Apr 14 '15 16:04 chewi

+1

emirkin avatar Apr 16 '15 18:04 emirkin

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 [email protected]
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 [email protected]: 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 [email protected]: bundle exit status: 127
bundle stdout: Nothing written
bundle stderr: /usr/local/rvm/scripts/set: line 19: exec: bundle: not found

leonardteo avatar Apr 18 '15 00:04 leonardteo

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

leonardteo avatar Apr 18 '15 01:04 leonardteo

+1 (thanks, @leonardteo)

john-999 avatar Jun 04 '15 16:06 john-999

+1 Thanks! @leonardteo

guitaroff avatar Jul 09 '15 15:07 guitaroff

thank you @leonardteo ;)

AlexEscohotado avatar Jun 04 '17 08:06 AlexEscohotado

Thanks a lot @leonardteo !

paulleoniuk avatar Jul 10 '17 10:07 paulleoniuk