Created
February 5, 2010 14:22
-
-
Save sudara/295821 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :mongrel_base_port, 5000 | |
set :mongrel_restart_delay, 30 | |
set :mongrel_count, 2 | |
namespace :mongrel do | |
task :restart, :roles => [:app], :except => {:mongrel => false} do | |
(mongrel_base_port..(mongrel_base_port+mongrel_count)).to_a.each do |port| | |
sudo "/usr/bin/monit restart mongrel_#{monit_group}_#{port}" | |
sleep mongrel_restart_delay | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment