RailsCasts Pro episodes are now free!

Learn more or hide this

Danny Kirschner's Profile

GitHub User: danman01

Site: http://gorankem.com

Comments by Danny Kirschner

Avatar

Thanks for the suggestion Allen. This fixed my unicorn deploy woes and seems to be pretty clean.

I added these tasks:

ruby
 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:

ruby
before 'deploy', "deploy:unmonitor_all"
after 'deploy', 'deploy:monitor_all'