John Joseph Bachir escribió:
> Is it possible to tell capistrano that even if a task fails, it should
> continue on with the surrounding chain?
>
> I need to stop a service before stopping my mongrel cluster, and then
> start it afterward. If the service is already down, I still want the
> rest of the tasks to happen.
>
> Thanks,
> John
>
>   
Jamis Buck said on 20/12/07:
"Yes, you can do:

task :foo, :roles => %w(whatever), :on_error => :continue do
  run "something that might fail"
end

The :on_error => :continue bit tells capistrano to continue on to the 
next task, even if the command fails for any of the servers.

As for running commands on N hosts at a time, that's what Capistrano is 
all about. Just describe the hosts in roles, and then specify those 
roles in the :roles parameter when defining the task. Or, you can use 
the :hosts parameter and just give it an array of servers directly.

- Jamis "

-- 
Rafael Garcia Ortega


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

begin:vcard
fn;quoted-printable:Rafael Garc=C3=ADa Ortega
n;quoted-printable:Garc=C3=ADa Ortega;Rafael
org:ASPgems S.L.
email;internet:[EMAIL PROTECTED]
tel;work:692686533
x-mozilla-html:FALSE
url:http://www.aspgems.com
version:2.1
end:vcard

Reply via email to