Open Startouf opened 8 years ago
I have the same issue ...
even after setting
rvm_bin_path: '/usr/share/rvm/bin'
capistrano deploy task is failing with error 127.
SSHKit::Command::Failed: rvm exit status: 127
rvm stdout: bash: /usr/local/rvm/bin/rvm: No such file or directory
Any solution ??
@nikunj0407 It's :rvm_custom_path
not bin_path that worked for me.
However now I have to deploy to different servers running different OS, and they don't have the same RVM install directory.
I tried passing :rvm_custom_path
to the server call, but it doesn't seem to work.
What worked for me was creating a symlink to /usr/share/rvm/bin/rvm
on my deployment target dir $/.rvm/bin/rvm
+1 on @daninfpj suggestion. On your deploying users home directory do...
mkdir .rvm mkdir .rvm/bin ln -s /usr/share/rvm/bin/rvm .rvm/bin/rvm
on my server : echo $rvm_bin_path
/usr/share/rvm/bin
I fixed it by setting the custom path to : set :rvm_custom_path, "/usr/share/rvm"
Then cap production rvm:check works, and the bundle command works on deploy.
What worked for me was creating a symlink to
/usr/share/rvm/bin/rvm
on my deployment target dir$/.rvm/bin/rvm
Still facing this issue in 2022. Thankfully after hours of search got this to make my cap deploy work.
I did follow the instructions from rvm.io, and my rvm got installed by default in
(instead of usr/local)
I am running on an Ubuntu instance from Amazon, this is maybe why ?
Anyway, the rvm path is not detected with the system-wide install. Might want to add this path to the list of default paths checked by your gem.