Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Passenger
- namespace :passenger do
- desc "Restart Application"
- task :restart, :roles => :app do
- run "touch #{current_path}/tmp/restart.txt"
- end
- end
- namespace :deploy do
- desc "Restart the Passenger system."
- task :restart, :roles => :app do
- passenger.restart
- end
- end if :RAILS_ENV == 'staging'
Add Comment
Please, Sign In to add comment