Displaying 1 result from an estimated 1 matches for "restart_rail".
Did you mean:
restart_rails
2006 May 23
2
Capistrano won''t spawn fcgi processes
...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 ]; then rm -f home_dir/var/run/
app-0.pid; echo ''Force deleted home...