module MagicRecipes::Passenger

Passenger - Deploy

Simple recipe to restart passenger

Tasks:

task :restart # => Restart Phusion-Passenger

Callbacks:

after “deploy:restart”, “passenger:restart”

Public Class Methods

load_into(configuration) click to toggle source
# File lib/magic_recipes/passenger.rb, line 15
def self.load_into(configuration)
  configuration.load do
    
    set_default :pre_start, false         # => pre_start the first domain ?
    
    namespace :passenger do
      
      desc "Restart - Passenger"
      task :restart, :roles => :app, :except => { :no_release => true } do
        run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
      end
      after "deploy:restart", "passenger:restart"
      
    end
    
  end
end