Hi, I'm trying to deploy non-ruby/rails app to multiple servers using capistrano. It seems capistrano does simultaneous deployment on multiple server. In the interest of HA, we want to do deployment on first set of server and once it's done then do same deployment on second sets of servers. In following example, I would like to run task on "server1" and "server2" first and then on "server3" and "server4".
Is there any way to do that without duplicating code? role :app_server, 'server1', 'server2', 'server3', 'server4' task :default, :roles => :app_server do server.stop server.update server.start end Ruby/cap version: >ruby --version ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] >cap --version Capistrano v2.5.10 -TIA -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en