0
0
Fork 0

Remove rails_12factor (#2901)

This commit is contained in:
alpaca-tc 2017-05-09 12:15:54 +09:00 committed by Eugen Rochko
parent 7c249dfd88
commit ef226a6f22
3 changed files with 5 additions and 7 deletions

View file

@ -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