capistrano / rvm

MIT License
140 stars 47 forks source link

capistrano-rvm breaks tasks on servers, where rvm is not installed #75

Open fabianfrz opened 8 years ago

fabianfrz commented 8 years ago

I have an issue with capistrano and rvm: it hooks rake when it is using a role which is not set in :rvm_roles the result is that the rake command cannot be executed Error: "bash: /bin/rvm: No such file or directory"

fredbaa commented 7 years ago

@fabianfrz were you able to fix this?

fabianfrz commented 7 years ago

@fredbaa I have not looked at it anymore as the project has ended and I have not needed this feature since.

Roko131 commented 7 years ago

Readme: If you want to restrict RVM usage to a subset of roles, you may set :rvm_roles: set :rvm_roles, [:app, :web]

That being said- I tried that but it didn't work for me.

What I ended up doing was: For example disable rvm for task: cap production setup:install_nginx

capify

require 'capistrano/rvm' unless ARGV[1] && ARGV[1].include?('nginx')

So the rvm module is only being loaded for certain tasks