A platform for community discussion. Free, open, simple.
DEV: Display a warning when assets are precompiled in local env (#35323)
Loïc Guitaut68c0ca00f374
diff --git a/config/application.rb b/config/application.rbindex 5a3cbfc067d..24ea33f68cc 100644--- a/config/application.rb+++ b/config/application.rb@@ -222,6 +222,14 @@ module Discoursecontroller.action_methodsendend++ puts <<~WARNING if Rails.env.local? && Rails.application.assets.config.manifest_path.exist?+ \e[1;31m==========================================================================+ WARNING: an asset manifest file exists. This means the assets won’t be+ compiled automatically, and will be served statically instead.+ To re-enable automatic compilation, you can run `bin/rails assets:clobber`+ ==========================================================================\e[0m+ WARNINGendrequire "rbtrace" if ENV["RBTRACE"] == "1"