Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fabianfrz opened this issue Apr 14, 2016 · 3 comments
Open

Comments

@fabianfrz
Copy link

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
Copy link

fredbaa commented May 8, 2017

@fabianfrz were you able to fix this?

@fabianfrz
Copy link
Author

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

@Roko131
Copy link

Roko131 commented Aug 22, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants