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