capistrano / rvm

MIT License
140 stars 47 forks source link

Add rvmsudo to default rvm_map_bins #53

Closed RKushnir closed 9 years ago

RKushnir commented 10 years ago

Please, consider adding rvmsudo to the list of binaries that get an /usr/local/rvm ... do prefix(rvm_map_bins). My specific use case is with foreman:

execute :rvmsudo, :foreman, "export", "upstart"

Without the prefix it just says /usr/bin/env: rvmsudo: No such file or directory.

jlhervo commented 10 years ago

Just add set :rvm_map_bins, %w{gem rake ruby bundle rvmsudo} to your deploy.rb file and it should work.

RKushnir commented 10 years ago

@jlhervo Thanks, that's what I did until the issue is resolved.

nisanthchunduru commented 9 years ago

Better, add it to existing list of bins in deploy.rb

set :rvm_map_bins, fetch(:rvm_map_bins, []).push('rvmsudo')
RKushnir commented 9 years ago

I discovered, if foreman is installed in the system ruby, there's no need to use rvmsudo, as the regular sudo works.