As far as I can tell, the capistrano :db
role is used only to run migrations.
(Thus, in most cases it probably shouldn't actually be the server that runs your database. Why would you have a ruby/rails stack there (or allow ssh logins there)? it's just whatever server you want to actually execute the rails migrations).
And only the server identified as db role with :primary => true
is used to run migrations.
So any other servers identified as 'db' role but without :primary => true
... are used for nothing at all? So why does the default deploy.rb created by capify .
encourage you to list them? What would you even list here?
Anything I'm missing?