I cant find good examples and help in Internet for seesaw gem. Maybe it is used only by very experirienced rails persons.
I will publish my configurations in case they are helpfull to some one.
guda@guda-desktop:~/system3/config$ cat seesaw.yml --- restart_cmd: sudo kill -HUP `cat /usr/local/nginx/logs/nginx.pid` config_symlink: http_cluster/cluster.conf mongrel_config_path: /home/mongrel/system3/current/config/mongrel_cluster.yml config_path: /home/mongrel/system3/current/config config_files: all: cluster_all.conf 1: cluster_1.conf 2: cluster_2.conf symlink_cmd: ln -sf
here is where my nginx conf link points
guda@guda-desktop:~/system3/config/http_cluster$ ls -l total 16 -rw-r--r-- 1 guda guda 152 2008-11-07 17:17 cluster_1.conf -rw-r--r-- 1 guda guda 152 2008-11-07 17:17 cluster_2.conf -rw-r--r-- 1 guda guda 277 2008-11-07 17:17 cluster_all.conf lrwxrwxrwx 1 guda guda 66 2008-11-08 01:30 cluster.conf -> /home/mongrel/system3/current/config/http_cluster/cluster_all.conf
and in deploy.rb I have this task rewritten.
set :seesaw_conf, "#{current_path}/config/seesaw.yml" namespace :deploy do desc <<-DESC Restart the Mongrel processes on the app server using seesaw DESC task :restart, :roles => :app do run <<-CMD cd #{current_path} ; #{mongrel_rails} seesaw::bounce -C #{seesaw_conf} CMD # send(run_method, "cd #{current_path}; #{mongrel_rails} seesaw::bounce -C #{seesaw_conf}") end end
I am not sure that this is the perfect way of configurating the seesaw. I think that I have some mistakes in the path configurations, and because of that I have to patch the capistrano restart task.