I found that this is done very easy by creating a task for each
environment... like this:

desc "Set the target stage to production"
 task :production do
     set :stage, "production"
     role :web, "192.168.0.1"
     role :app, "192.168.0.1"
     role :db,  "192.168.0.1", :primary => true
 end
 desc "Set the target stage to staging"
 task :staging do
     set :stage, "staging"
     role :web, "192.168.0.2"
     role :app, "192.168.0.2"
     role :db,  "192.168.0.2", :primary => true
 end

Now before every call use cap production deploy...

Put any environment setting and variables that you want to set inside
of the environment tasks and you are done.


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to