Sha256: da84b06d4ec471581ce687d6c21bb793d80222361a18474ff2105467cdd6109d
Contents?: true
Size: 1.08 KB
Versions: 18
Compression:
Stored size: 1.08 KB
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :mongrel do desc <<-DESC Start Mongrel processes on the app server. This uses the :use_sudo variable to determine whether to use sudo or not. By default, :use_sudo is set to true. DESC task :start, :roles => [:app], :except => {:mongrel => false} do sudo "/usr/bin/monit start all -g #{monit_group}" end desc <<-DESC Restart the Mongrel processes on the app server by starting and stopping the cluster. This uses the :use_sudo variable to determine whether to use sudo or not. By default, :use_sudo is set to true. DESC task :restart, :roles => [:app], :except => {:mongrel => false} do sudo "/usr/bin/monit restart all -g #{monit_group}" end desc <<-DESC Stop the Mongrel processes on the app server. This uses the :use_sudo variable to determine whether to use sudo or not. By default, :use_sudo is set to true. DESC task :stop, :roles => [:app], :except => {:mongrel => false} do sudo "/usr/bin/monit stop all -g #{monit_group}" end end end
Version data entries
18 entries across 18 versions & 3 rubygems