When deploying to mulitple application servers,
role :app, "192.168.1.1", "192.168.1.2"
Is there a variable accessable to my task that can tell me when I am
running a task for "192.168.1.1" or "192.168.1.2".
The reason I need this, is to update my mongrel_cluster.yml config
file. Inside the file it desigates which address to bind to (address:
192.168.1.1). When deploying to two application servers, each server
binds to a seperate address.
I would like to be able to do something like this:
namespace :mongrel do
task :custom_config, :roles => :app do
server_address = some_variable_that
_conatins_"192.168.1.1"_or_"192.168.1.2"
mongrel_config = render("./deploy/
mongrel_cluster_template.yml", :address => server_address )
put mongrel_config, "#{release_path/config/
mongrel_cluster.yml", :mode => 0777
end
end
I have tried using the "$CAPISTRANO:HOST$", but it doesn't seem to
work like I would expect it to.
Is there such a variable or should I be looking at doing this a
different way?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---