there is the :once => true addition you can make to the run call definition to make it only run on the first host that matches. Documented here: http://wiki.capify.org/index.php/Run#options
2009/6/1 Supagroova <[email protected]> > > Hi all, > > I have a recipe deploying to multiple hosts, and have a 'after' > callback setting a tag for the deploy in my SCM. Problem is it's being > executed each time for each host and I only want to execute it once: > > role :web, '_IP_ADDRESS_', '_IP_ADDRESS_', '_IP_ADDRESS_', :primary => > true > > + > > after "deploy:update_code", "deploy:create_scm_tag" > > Any ideas/help? > > Thanks! > > > > --~--~---------~--~----~------------~-------~--~----~ 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.co.uk/group/capistrano?hl=en -~----------~----~----~----~------~----~------~--~---
