Edge Rails (aka 1.2) reaper
If your working with Edge Rails (the soon to be Rails 1.2) you may have noticed that the *-d* option for script/process/reaper has gone away.
Many folks use the -d options in Capistrano deploy.rb to restart the processes after deploying.
A new way to restart them is to specify a file to hold the PID (process id) of the currently running dispatch.fcgi process. You'll need to do two things:
- Save the PID when you start the process
- Tell reaper where to look to find the PID
RAILS_ENV=production spawn-fcgi -f dispatch.fcgi -s $SOCK_DIR/somesite-0.socket -P $HOME/var/run/dispatch.0.pid
And then in your deploy.rb change the restart task
desc "Restart the web server" task :restart, :roles => :app do run "cd #{current_path}; ./script/process/reaper -p $HOME/var/run" end
Created at: Mon Oct 30 19:02:17 UTC 2006 Updated at: Wed Jan 16 12:16:12 UTC 2008

