chore(dev): on update, run maintenance tasks configured on deploy

This commit is contained in:
Colin Darie 2024-09-24 14:48:04 +02:00
parent cae5d8afed
commit 0d5b0e81e7
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -37,6 +37,9 @@ FileUtils.chdir APP_ROOT do
puts "\n== Running after_party tasks ==" puts "\n== Running after_party tasks =="
system! 'bin/rails after_party:run' system! 'bin/rails after_party:run'
puts "\n== Running on deploy maintenance tasks =="
system! 'bin/rails deploy:maintenance_tasks'
puts "\n== Removing old logs ==" puts "\n== Removing old logs =="
system! 'bin/rails log:clear' system! 'bin/rails log:clear'