Capistrano: required tasks for use with Passenger


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.