-
Notifications
You must be signed in to change notification settings - Fork 60
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-rbenv runs command on each server irrespective of hosts/roles filters #39
Comments
https://github.com/capistrano/rbenv/blob/master/lib/capistrano/tasks/rbenv.rake#L3 |
In my case, I have simple setup where I have separate server for db. So db role is separate. server 'example.com', user: 'deploy', roles: %w{web app}, forward_agent: true
server 'db.example.com', user: 'deploy', roles: %w{db}, forward_agent: true But on cap production deploy give following error
|
Capistrano expects db server to has rbenv/ruby installed to run Rails migrations. |
But migration resides on app server and database.yml is responsible for connection. So no need of rbenv on db server. By the way @kirs , I have solved issue using rbenv_roles. |
Then why do you need to list DB server on Capistrano? |
@kirs practically for my app no need. |
My configuration has more then 200 servers. I run deploy on with role/hosts filters. But rbenv is trying to connect on each server. If a role is filtered out rbenv should not try to connect a server at all.
it is running "/usr/bin/env [ ! -d /home/.rbenv/versions/2.0.0-p247 ] " on each server.
yyuu/capistrano-rbenv#15
capistrano/capistrano#795
forward3d/cap-ec2#14
The text was updated successfully, but these errors were encountered: