On Mon, 2008-07-14 at 15:56 -0600, Jamis Buck wrote:

> I'd do something like the multistage stuff:


beautiful, 
many thanks,


> 
>    set(:deploy_to) { abort "you need to call install_1, install_2, or  
> install_3 first" }
> 
>    task :install_1 do
>      set :deploy_to, "/home/rails/install_1/#{application}"
>    end
> 
>    task :install_2 do
>      set :deploy_to, "/home/rails/install_2/#{application}"
>    end
> 
>    task :install_3 do
>      set :deploy_to, "/home/rails/install_3/#{application}"
>    end
> 
> Then, I'd deploy three times:
> 
>    cap install_1 deploy
>    cap install_2 deploy
>    cap install_3 deploy
> 
> Which, of course, could be wrapped into a rake task for ease of  
> execution if you're always executing all three.
> 
> - Jamis
> 
> On Jul 14, 2008, at 3:35 PM, Andres wrote:
> 
> >
> > Hi,
> >
> > Quick question,
> >
> > With the basic documentation, it easy to understand how to deploy one
> > app to different boxes by passing several servers to the role :app,
> > variable.
> >
> > But, what if I'd like to deploy the same application several times in
> > the same box,
> > something as
> >
> > set :deploy_to, "/home/rails/install_1/#{application}"
> > set :deploy_to, "/home/rails/install_2/#{application}"
> > set :deploy_to, "/home/rails/install_3/#{application}"
> >
> > But all in the same machine,
> >
> > So, in this case, what's the approach to deploy my app several times
> > in the same box?
> >
> > Thank you,
> >
> > Andres
> >
> > >
> 
> 
> --~--~---------~--~----~------------~-------~--~----~
> To unsubscribe from this group, send email to [EMAIL PROTECTED]
> For more options, visit this group at 
> http://groups.google.com/group/capistrano
> -~----------~----~----~----~------~----~------~--~---
> 

-- 
Andres Paglayan
CTO, StoneSoup LLC 
Ph: 505 629-4344
Mb: 505 690-2871
FWD: 65-5587
Testi. Codi. Vinci.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to