Guest User

Untitled

a guest
Jun 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # Passenger
  2. namespace :passenger do
  3. desc "Restart Application"
  4. task :restart, :roles => :app do
  5. run "touch #{current_path}/tmp/restart.txt"
  6. end
  7. end
  8.  
  9. namespace :deploy do
  10. desc "Restart the Passenger system."
  11. task :restart, :roles => :app do
  12. passenger.restart
  13. end
  14. end if :RAILS_ENV == 'staging'
Add Comment
Please, Sign In to add comment