lib/magic_recipes/passenger.rb in magic_recipes-0.0.14 vs lib/magic_recipes/passenger.rb in magic_recipes-0.0.15

- old
+ new

@@ -1,15 +1,23 @@ # encoding: utf-8 module MagicRecipes module Passenger + + # Passenger - Deploy + # + # Tasks: + # task :restart # => Restart Phusion-Passenger + # + # Callbacks: + # after "deploy:restart", "passenger:restart" + # def self.load_into(configuration) configuration.load do set_default :pre_start, false # => pre_start the first domain ? namespace :passenger do - # Restart Passenger 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"