Reputation: 1369
I have my app deployed on multiple servers and each have their own database. How do I deploy the app with "cap deploy production" to all servers?
This is my production.rb
role :web, "123.456.78.90"
role :app, "123.456.78.90"
role :db, "123.456.78.90", :primary => true
set :rails_env, "production"
set :user, "root"
set :password, "password"
I would need capistrano to also deploy it to the following:
role :web, "567.890.12.34"
role :app, "567.890.12.34"
role :db, "567.890.12.34", :primary => true
set :rails_env, "production"
set :user, "root"
set :password, "password"
Upvotes: 0
Views: 2882
Reputation: 589
Try this in your production.rb
role :app, %w{s01.foo.com s02.foo.com}, user: 'root'
role :web, %w{s01.foo.com s02.foo.com}, user: 'root'
Upvotes: 1