Jens Krämer

SCGI and SwitchTower

 |  scgi, switchtower, ruby, rails

SwitchTower task for restarting scgi processes:

desc "Restart scgi handlers" task :restart, :roles => :app do run "cd #{current_path}; script/scgi_rails stop -f #{shared_path}/scgi-children.yml || true" run "cd #{current_path}; script/scgi_rails start -e production -h 127.0.0.1 -p 9999 -c 3 -f #{shared_path}/scgi-children.yml; echo Done." end