summaryrefslogtreecommitdiffstats
path: root/config/environments/production.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-25 17:17:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-25 17:17:49 +0000
commit5e57a1a9d9478162ac4f27ae96b2ccaf55a1aba7 (patch)
tree93e57765139714bd82dede475725516c448c0d55 /config/environments/production.rb
parent34e20c4373b7f5a20ab3a132feae3f70f21ec477 (diff)
downloadredmine-5e57a1a9d9478162ac4f27ae96b2ccaf55a1aba7.tar.gz
redmine-5e57a1a9d9478162ac4f27ae96b2ccaf55a1aba7.zip
Merged rails-3.2 branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r--config/environments/production.rb48
1 files changed, 25 insertions, 23 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 91af89ce2..9ff88560d 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,30 +1,32 @@
# Settings specified here will take precedence over those in config/environment.rb
+RedmineApp::Application.configure do
+ # The production environment is meant for finished, "live" apps.
+ # Code is not reloaded between requests
+ config.cache_classes = true
-# The production environment is meant for finished, "live" apps.
-# Code is not reloaded between requests
-config.cache_classes = true
+ #####
+ # Customize the default logger (http://ruby-doc.org/core/classes/Logger.html)
+ #
+ # Use a different logger for distributed setups
+ # config.logger = SyslogLogger.new
+ #
+ # Rotate logs bigger than 1MB, keeps no more than 7 rotated logs around.
+ # When setting a new Logger, make sure to set it's log level too.
+ #
+ # config.logger = Logger.new(config.log_path, 7, 1048576)
+ # config.logger.level = Logger::INFO
-#####
-# Customize the default logger (http://ruby-doc.org/core/classes/Logger.html)
-#
-# Use a different logger for distributed setups
-# config.logger = SyslogLogger.new
-#
-# Rotate logs bigger than 1MB, keeps no more than 7 rotated logs around.
-# When setting a new Logger, make sure to set it's log level too.
-#
-# config.logger = Logger.new(config.log_path, 7, 1048576)
-# config.logger.level = Logger::INFO
+ # Full error reports are disabled and caching is turned on
+ config.action_controller.perform_caching = true
-# Full error reports are disabled and caching is turned on
-config.action_controller.consider_all_requests_local = false
-config.action_controller.perform_caching = true
+ # Enable serving of images, stylesheets, and javascripts from an asset server
+ # config.action_controller.asset_host = "http://assets.example.com"
-# Enable serving of images, stylesheets, and javascripts from an asset server
-# config.action_controller.asset_host = "http://assets.example.com"
+ # Disable delivery errors if you bad email addresses should just be ignored
+ config.action_mailer.raise_delivery_errors = false
-# Disable delivery errors if you bad email addresses should just be ignored
-config.action_mailer.raise_delivery_errors = false
+ # No email in production log
+ config.action_mailer.logger = nil
-# No email in production log
-config.action_mailer.logger = nil
+ config.active_support.deprecation = :log
+end