Hi Giorgio, Hi Giorgio, It should works as you said. If you need more information about roles you can read this:
https://github.com/capistrano/capistrano/wiki/Roles Regards 2011/2/10 giorgio <[email protected]> > Hi, > > I want to deploy an identical rails app (2.2.2) to several servers > (each with their own database) at the same time. > I have looked at loads of internet posts and I am still a bit > confused. > > My current recipe (snippet) is: > > set :location, "mydomain.com" > ... > > role :app, location > role :web, location > role :db, location, :primary => true > > So if I have a "location2" how do I change the roles? > > set :location, "mydomain.com" > set :location2, "myOTHERdomain.com" > > role :app, location,location2 > role :web, location,location2 > role :db, location,location2, :primary => true > > or is it [location,location2] > > Will migrations run on both location and location2 (which is what I > need) > > Is adding the extra locations all I need to do? > > Cheers > George > > -- > * You received this message because you are subscribed to the Google Groups > "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/capistrano?hl=en > -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
