Guest User

Untitled

a guest
Jun 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #
  2. # Methods to start/stop/restart passenger
  3. #
  4. namespace :deploy do
  5.  
  6. desc "Restarting passenger"
  7. task :restart, :roles => :app do
  8. run "touch #{current_path}/tmp/restart.txt"
  9. end
  10.  
  11. [:start, :stop].each do |t|
  12. desc "#{t} task is a no-op with mod_rails"
  13. task t, :roles => :app do ; end
  14. end
  15.  
  16. end
Add Comment
Please, Sign In to add comment