Forum: Ruby on Rails Capistrano Deployment to Multiple App Servers w/Mongrel

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ab03191a5efe5343a0517bf5e4fbdaf2?d=identicon&s=25 Dave Troy (Guest)
on 2007-05-21 16:27
(Received via mailing list)
Hey folks,

I have an app deployed across multiple app servers with Capistrano as
follows:

role :web, "app1.domain.com", :primary => true
role :app, "app1.domain.com", "app2.domain.com"
role :db,  "db1.domain.com", :primary => true
...
set :mongrel_conf, "#{current_path}/config/mongrel_cluster.yml"

This works OK, but I would really like to change the mongrel
configuration so that it runs on a different address on app1 & app2.

Specifically, I want app1 to listen on 127.0.0.1 and I want app2 to
listen on 172.16.1.1.

Being able to change the number of mongrels & start port would also be
handy.

Anyway, I have found plenty of reference to people deploying to
staging & production environments and changing stuff out that way, but
this is just to change the config per-server in production.

What is the most elegant way to do this?

Thanks,
Dave
This topic is locked and can not be replied to.