diff options
author | alpaca-tc <alpaca-tc@alpaca.tc> | 2017-05-09 12:15:54 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-09 05:15:54 +0200 |
commit | ef226a6f223ad3bdf662efb0ed75694b3f0bfb56 (patch) | |
tree | 1fd9e531af3f3fa1da34abf4b3806adf245a60e5 /config/environments/production.rb | |
parent | 7c249dfd886a965d384e39754e7c059a9d8ea216 (diff) |
Remove rails_12factor (#2901)
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r-- | config/environments/production.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 2c13707c266..fa5f07495dc 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -19,6 +19,11 @@ Rails.application.configure do # Apache or NGINX already handles this. config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + ActiveSupport::Logger.new(STDOUT).tap do |logger| + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + # Compress JavaScripts and CSS. config.assets.js_compressor = Uglifier.new(mangle: false) # config.assets.css_compressor = :sass |