-
Notifications
You must be signed in to change notification settings - Fork 47
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
Executing code locally with mixed rvm types #62
Comments
This is part of a much wider issue, which is that capistrano-rvm assumes all servers you are deploying to have the same RVM environment. I would like to see the more general issue addressed. Has anyone put any thought into how we would do that? I realize it's a limitation of capistrano that it uses a single SSHKit command map for all servers/roles, so capistrano-rvm might be the wrong place to address this. Are there any open tickets for this at the moment? |
I just got the same issue. I don't know capistrano internals, however I think that |
@fabn A good workaround is to use a String instead of a Symbol, i.e.
|
Also just ran into this. Thanks @betesh for the workaround. It seems to me that |
Most capistrano plugins seem to have made the assumption that the needed command prefixes are the same on all servers--as I mentioned above, there's a limitation in SSHKit which doesn't give them much of an option. For instance, there is a limitation in capistrano-passenger when you are running multiple instances of passenger and need to specify an instance ID--the instance ID is different on every server. capistrano-rvm assumes you are running the same version of rvm on every server. You can work around that by setting |
I'm trying to run a task that involves the
run_locally
method, but whenever Capistrano tries to execute this task, it tries to use the server's rvm type which is different from my type (system vs user), is there a way to tell Capistrano to check what type to use during a run_locally block?The text was updated successfully, but these errors were encountered: