Sha256: a8cc3a35f91b40afdbad1198233e53531855f3c5f012fd980431337d7787cba2
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :unicorn do desc <<-DESC Start the Unicorn Master. 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 => {:unicorn => false} do sudo "/usr/bin/monit start all -g #{monit_group}" end desc <<-DESC Restart the Unicorn processes on the app server by starting and stopping the master. 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 => {:unicorn => false} do sudo "/usr/bin/monit restart all -g #{monit_group}" end desc <<-DESC Stop the Unicorn 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 => {:unicorn => false} do sudo "/usr/bin/monit stop all -g #{monit_group}" end desc <<-DESC Reloads the unicorn works gracefully - Use deploy task for deploys DESC task :reload, :roles => [:app], :except => {:unicorn => false} do sudo "/engineyard/bin/unicorn #{application} reload" end desc <<-DESC Adds a Unicorn worker - Beware of causing your host to swap, this setting isn't permanent DESC task :aworker, :roles => [:app], :except => {:unicorn => false} do sudo "/engineyard/bin/unicorn #{application} aworker" end desc <<-DESC Removes a unicorn worker (gracefully) DESC task :rworker, :roles => [:app], :except => {:unicorn => false} do sudo "/engineyard/bin/unicorn #{application} rworker" end desc <<-DESC Deploys app gracefully with USR2 and unicorn.rb combo DESC task :deploy, :roles => [:app], :except => {:unicorn => false} do run "/engineyard/bin/unicorn #{application} deploy" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eycap-0.6.2 | lib/eycap/recipes/unicorn.rb |