I had a problem today that I managed to find the answer to, but only after
lots of googling around. I thought I'd add it to the list for the next guy:

I have a script that launches several sub-processes, which works great when
you run it by hand, but was hanging the deployment process when it's run
with capistrano. The script looks something like this:

#!/usr/local/bin/ruby
[...]
pid = Process.fork { FetchServer.run }
Process.detach(pid)
[...]

Apparently the script and cap were all waiting around for the sub-processes
to exit, which they weren't planning to do. I got it working by adding this
line to the top of deploy.rb:

default_run_options[:pty] = true

Hope that helps someone else.

Aaron

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

Reply via email to