mongrel clusterを再起動させたい
capistranoは標準でfcgiサーバーの再起動ができるようになってるようで
mongrel clusterを使っているウチの環境ではどうしたらいいのかなーと思ってたら
config/deploy.rbに以下を追記すればよいようです
desc "Restart mongrel cluster" task :restart, :roles => :app do begin run "cd #{current_path} && mongrel_rails cluster::restart" rescue RuntimeError => e puts e end end desc "Start mongrel cluster" task :spinner, :roles => :app do begin run "cd #{current_path} && mongrel_rails cluster::start" rescue RuntimeError => e puts e end end desc "Stop mongrel_cluster" task :stop, :roles => :app do begin run "cd #{current_path} && mongrel_rails cluster::stop" rescue RuntimeError => e puts e end end
ちなみに
[root@localhost ~]# cap -V Capistrano v1.4.0