capistrano / rvm

MIT License
140 stars 47 forks source link

Using `rvm x.x` with RVM 1.25.14 #39

Closed Aupajo closed 10 years ago

Aupajo commented 10 years ago

I updated the target server to the latest version of RVM today:

$ rvm --version

rvm 1.25.14 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Since upgrading, the deployment recipe I'm using has stopped working:

 INFO [7a0dd7de] Running /usr/local/rvm/bin/rvm 2.1.0
 do bundle --gemfile /redacted/releases/20140115024320/Gemfile --path /redacted/shared/bundle --deployment --quiet --binstubs /redacted/shared/bin --without development test on redacted.example.com
DEBUG [7a0dd7de] Command: cd /redacted/releases/20140115024320 && /usr/local/rvm/bin/rvm 2.1.0
 do bundle --gemfile /redacted/releases/20140115024320/Gemfile --path /redacted/shared/bundle --deployment --quiet --binstubs /redacted/shared/bin --without development test
DEBUG [7a0dd7de]  RVM is not a function, selecting rubies with 'rvm use ...' will not work.
DEBUG [7a0dd7de]  
DEBUG [7a0dd7de]  You need to change your terminal emulator preferences to allow login shell.
DEBUG [7a0dd7de]  Sometimes it is required to use `/bin/bash --login` as the command.
DEBUG [7a0dd7de]  Please visit https://rvm.io/integration/gnome-terminal/ for a example.

I notice in #34, the call to rvm has been replaced with rvm-auto.sh, so potentially this issue won't arise when that PR is merged.

mpapis commented 10 years ago

it looks like the version 2.1.0 contains a new line at the end, do you set the version or it is auto detected?

Aupajo commented 10 years ago

Nailed it in one! You're right, an extra newline character got introduced.