Displaying 1 result from an estimated 1 matches for "rails_app_restart".
2006 May 23
2
Capistrano won''t spawn fcgi processes
...pt restarts a rails
application by first killing all active fcgi processes and then
spawning new ones again. The shell script works fine when executed
locally on the server but running this in a Capistrano task will
simply not work.
The task is simple:
desc "ReStart Rails"
task :rails_app_restart, :roles => :app do
run "#{home_directory}/etc/rc.d/restart_rails.sh"
end
my restart_rails.sh:
if [ -e home_dir/var/run/app-0.pid ]; then kill -9 `cat home_dir/var/
run/app-0.pid`; echo ''Killed home_dir/var/run/app-0.pid''; fi
if [ -e home_dir/var/run/app-0.pid ];...