You shouldn't need to.  IIRC, cap will exit non-zero on a failed deploy.

On Wed, May 5, 2010 at 08:59, Joel Gwynn <[email protected]> wrote:
> And the follow-up question:  If I'm making two separate calls to cap,
> I'd like to know that the first call was successful, and wasn't rolled
> back, before bouncing the servers.  I'm not finding an easy way to
> capture the output of cap from within php.
>
> On Wed, May 5, 2010 at 11:21 AM, joelman <[email protected]> wrote:
>> I already have that script.  The problem is that after deploy, I need
>> to sequentially take each server out of the load balancer, bounce
>> apache, and put it back in.  I suppose I could call cap a 2nd time
>> with a new bounce task, after all the modules are deployed.
>>
>> On 5 May, 10:01, Lee Hambley <[email protected]> wrote:
>>> Don't is the simple answer.
>>>
>>> If you have a requirement for that, build a script that wraps the multiple
>>> deploy processes, unless you have a need that they are deployed in parallel.
>>>
>>> -Lee
>>>
>>> --
>>> * 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 
>>> athttp://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
>
> --
> * 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

Reply via email to