Skip to content

Commit

Permalink
Clear log and release handles
Browse files Browse the repository at this point in the history
  • Loading branch information
joshjordan committed Oct 5, 2017
1 parent e52ae19 commit 4591e9f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,15 @@
end
end
after 'deploy:restart', 'git:push_deploy_tag'

namespace :maintenance do
task :clear_log do
on roles(:app, :worker) do
within deploy_to do
execute(:rm, '-rf', 'shared/log/production.log')
end
end
end
end
after 'maintenance:clear_log', 'passenger:restart'
after 'maintenance:clear_log', 'restart_workers'

0 comments on commit 4591e9f

Please sign in to comment.