I like switchtower... one more thing that allows me to spend more
time focusing on the problem and less time on the mundane tasks.
I am using the following for the lighttpd server:
desc "Restart lighttpd"
task :restart, :roles => :app do
pids = "ps wwwax | grep lighttpd | grep -v grep " +
"| grep -v assets | cut -b 1-5"
"kill `#{pids}`"
end
Now it works perfectly when I deploy a new version of the code. The
problem is on rollback I need to manually go onto the server and do a
restart. Does that make any sense? Has anyone else run into similar
problems?
Thanks for the help.
Your Friend,
John Kopanas