Posted By

nate63179 on 11/03/09


Tagged

rails ruby capistrano


Versions (?)

Capistrano: required tasks for use with Passenger


 / Published in: Rails
 

  1. namespace :deploy do
  2. desc "Restarting Passenger through restart.txt file"
  3. task :restart, :roles => :app, :except => { :no_release => true } do
  4. run "touch #{current_path}/tmp/restart.txt"
  5. end
  6.  
  7. # Remove unused start and stop tasks
  8. [:start, :stop].each do |t|
  9. desc "#{t} task is a no-op with Passenger"
  10. task t, :roles => :app do ; end
  11. end
  12. end

Report this snippet  

You need to login to post a comment.