Remove precompiled assets on update

This commit is contained in:
Maikel Linke
2026-01-22 12:27:04 +11:00
parent b0b03cbb5f
commit 6cbc6fbca3

View File

@@ -33,6 +33,9 @@ FileUtils.chdir APP_ROOT do
system! "bin/rails db:prepare log:clear tmp:clear"
system! "rm -f tmp/capybara/screenshots/*.png"
puts "\n== Removing any precompiled assets that would be out of date now =="
system! "rm -rf public/assets/"
puts "\n== Restarting application server =="
# system! "bin/rails restart"
# Faster to do it manually: