capistrano / rvm

MIT License
140 stars 47 forks source link

System wide installation in usr/share #77

Open Startouf opened 8 years ago

Startouf commented 8 years ago

I did follow the instructions from rvm.io, and my rvm got installed by default in

$ which rvm
/usr/share/rvm/bin/rvm

(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.

nikunj0407 commented 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 ??

Startouf commented 8 years ago

@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.

daninfpj commented 6 years ago

What worked for me was creating a symlink to /usr/share/rvm/bin/rvm on my deployment target dir $/.rvm/bin/rvm

marklocklear commented 6 years ago

+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

salza80 commented 4 years ago

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.

techtyb commented 2 years ago

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.