Hi Anibal,
I think that you can do something like this:
run "nohup script/runner... ; true"
The keyword is the "true", it tells to capistrano if it works ok or not.
Regards
Aníbal Rojas wrote:
> Hello,
>
> As part of my deployment process I want to start a script/runner
> and I don't want to wait for it to end its execution, as it is a
> pretty long process , off course with a Capistrano task.
>
> It works, but it never returns from the run " ... script/runner ...
> " invocation
>
> Breaking the execution of the Capistrano task with Ctrl-C doesn't
> affect the running process, but it is kind of ugly and I want to
> properly finish everything and call hooks, etc.
>
> I am not sure about the fine details of the ssh stuff under the
> hood, and I tried using nohup ... &, redirecting the stdin and error,
> and nothing made any difference run " ... script/runner ... " blocks
> without returning
>
> Thanks in advance,
>
> ---------------------------------------- ----------------
> Aníbal Rojas
> http://hasmanydevelopers.com (work)
> http://rubycorner.com (community)
> http://anibal.rojas.com.ve (personal)
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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