RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: danman01
Thanks for the suggestion Allen. This fixed my unicorn deploy woes and seems to be pretty clean.
I added these tasks:
task :monitor_all, :roles => :app do
sudo "monit monitor all"
task :unmonitor_all, :roles => :app do
sudo "monit unmonitor all"
And then these hooks:
before 'deploy', "deploy:unmonitor_all"
after 'deploy', 'deploy:monitor_all'