Return to Snippet

Revision: 19907
at November 3, 2009 11:33 by nate63179


Initial Code
namespace :deploy do
  desc "Restarting Passenger through restart.txt file"
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "touch #{current_path}/tmp/restart.txt"
  end
  
  # Remove unused start and stop tasks
  [:start, :stop].each do |t|
    desc "#{t} task is a no-op with Passenger"
    task t, :roles => :app do ; end
  end
end

Initial URL


Initial Description


Initial Title
Capistrano: required tasks for use with Passenger

Initial Tags
rails, ruby

Initial Language
Rails