Cap & rvm - switched from system rvm to user rvm

hi, i had rvm system wide, but then switched to a user installation, and
now im getting this:

cap production deploy
DEBUG [18852256] Running /usr/bin/env which passenger as
[email protected]
DEBUG [18852256] Command: ( export RVM_BIN_PATH="~/.rvm/bin" ;
/usr/bin/env
which passenger )
DEBUG [18852256] /usr/bin/passenger
DEBUG [18852256]
DEBUG [18852256] Finished in 0.481 seconds with exit status 0
(successful).
DEBUG [7976a3d9] Running /usr/local/rvm/bin/rvm version as
[email protected]
DEBUG [7976a3d9] Command: ( export RVM_BIN_PATH="~/.rvm/bin" ;
/usr/local/rvm/bin/rvm version )
DEBUG [7976a3d9] bash: /usr/local/rvm/bin/rvm: No such file or
directory
DEBUG [7976a3d9]
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::runner::ExecuteError: Exception while executing as
[email protected]: rvm exit status: 127
rvm stdout: bash: /usr/local/rvm/bin/rvm: No such file or directory
rvm stderr: Nothing written

SSHKit::Command::Failed: rvm exit status: 127
rvm stdout: bash: /usr/local/rvm/bin/rvm: No such file or directory
rvm stderr: Nothing written

this is how my deploy.rb starts

require “rvm/capistrano” # Load RVM’s capistrano plugin.

set :user, “administrator”
set :rvm_bin_path, “$HOME/.rvm/bin”
set :default_env, { rvm_bin_path: ‘~/.rvm/bin’ }
set :rvm_type, :user

any ideas?

thx

solved - had a doubled entry overriding the user variable

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs