|
I have a capistrano deploy script that works great except for the restart task. I have it run bin/restart but it never returns control back. The restart does actually work it's just that capistrano doesn't realize the command is finished. I've even run an 'ls' command afterwards "some_path/bin/restart;ls" and have tried returning true "some_path/bin/restart;true" but neither helped. The ls command ran and returned a listing but never 'exited'. The restart task is below (site contains the rails deployment directories/symbolic links).
Oddly I can run from the command line in a normal ssh session and it works fine - restarts in a couple seconds. Any ideas? |
Hi,
This seems to be a bug in the net-ssh package as explaine dhere:
https://capistrano.lighthouseapp.com/projects/8716/tickets/79-capistrano-hangs-on-shell-command-for-many-computers-on-ruby-186-p368#ticket-79-48
Can you try upgrading it and see if that helps?
My net-ssh package is at the latest in rubygems (2.1.4). I'm running ruby 1.8.7p302 through rvm as I wanted roughly the same version as on webfaction (though I'm not running ree). It's pretty late here - will try running a later ruby version tomorrow and see if there is any difference. Thanks for the link.