cap & rvm - switched from system rvm to user rvm

204 views
Skip to first unread message

tom

unread,
Dec 31, 2015, 9:59:14 AM12/31/15
to Ruby on Rails: Talk
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 admini...@domain.com
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 admini...@domain.com
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 admini...@domain.com: 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

tom

unread,
Dec 31, 2015, 10:25:21 AM12/31/15
to Ruby on Rails: Talk
solved - had a doubled entry overriding the user variable
Reply all
Reply to author
Forward
0 new messages