Module: CapistranoDeploy::Passenger

Defined in:
lib/capistrano-deploy/passenger.rb

Class Method Summary collapse

Class Method Details

.load_into(configuration) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/capistrano-deploy/passenger.rb', line 3

def self.load_into(configuration)
  configuration.load do
    namespace :passenger do
      desc 'Restart passenger'
      task :restart, :roles => :app, :except => {:no_release => true} do
        run "touch #{deploy_to}/tmp/restart.txt"
      end
    end

    after 'deploy:restart', 'passenger:restart'
  end
end