The absolute easiest way to do it would be to have three different  
"stage" configurations (one for each target), and run cap three times:

   $ cap first_deployment deploy
   ...
   $ cap second_deployment deploy
   ...
   $ cap third_deployment deploy
   ...

If you're always deploying all three together, a rake task sounds  
appropriate:

   # put this in your Rakefile
   task :deploy do
     targets = %w(first_deployment second_deployment third_deployment)
     targets.each do |target|
       run "cap #{target} deploy"
     end
   end

- Jamis

On Oct 22, 2008, at 12:22 PM, Wes Gamble wrote:

>
> All,
>
> We'd like to have 3 separate deployments of our app. running on one
> server.  So we'll deploy to the same machine, but to three different
> "deploy_to" target locations in the filesystem (which will, of course,
> be managed by three separate app. servers).
>
> What is the easiest way to achieve this?  Do I have to create a couple
> of custom tasks that then "override" the default setting for  
> "deploy_to"
> in deploy.rb?
>
> Thanks,
> Wes
>
> >


--~--~---------~--~----~------------~-------~--~----~
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