]> git.openstreetmap.org Git - rails.git/blobdiff - config/environments/production.rb
Standardise on double quoted strings
[rails.git] / config / environments / production.rb
index f0634b3cbd7b9d4909f33388137635a2393cb171..707202c52225a818be09fa87fc78aad86df9f35c 100644 (file)
@@ -22,7 +22,7 @@ OpenStreetMap::Application.configure do
 
   # Disable serving static files from the `/public` folder by default since
   # Apache or NGINX already handles this.
-  config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
+  config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
 
   # Compress JavaScripts and CSS.
   config.assets.js_compressor = :uglifier
@@ -46,15 +46,13 @@ OpenStreetMap::Application.configure do
 
   # Use the lowest log level to ensure availability of diagnostic information
   # when problems arise.
-  config.log_level = :debug
+  config.log_level = :info
 
   # Prepend all log lines with the following tags.
   # config.log_tags = [ :subdomain, :uuid ]
 
   # Use a different log path in production.
-  if defined?(LOG_PATH)
-    config.paths["log"] = LOG_PATH
-  end
+  config.paths["log"] = LOG_PATH if defined?(LOG_PATH)
 
   # Use a different logger for distributed setups.
   # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)