DEV: Follow up to a078feee07

This commit is contained in:
Guo Xiang Tan 2020-04-29 14:24:48 +08:00
parent a078feee07
commit 16ab6430fe
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ Discourse::Application.configure do
config.assets.digest = false
config.assets.debug = false
config.assets.quiet = true
# Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load
@ -39,7 +40,7 @@ Discourse::Application.configure do
config.log_level = ENV['DISCOURSE_DEV_LOG_LEVEL'] if ENV['DISCOURSE_DEV_LOG_LEVEL']
if ENV['RAILS_VERBOSE_QUERY_LOGS'] != "1"
if ENV['RAILS_VERBOSE_QUERY_LOGS'] == "1"
config.active_record.verbose_query_logs = true
end
@ -78,7 +79,7 @@ Discourse::Application.configure do
end
config.after_initialize do
if ENV["RAILS_COLORIZE_LOGGING"] != "1"
if ENV["RAILS_COLORIZE_LOGGING"] == "1"
config.colorize_logging = true
end