socialforge/config/environments/production.rb

39 lines
1.5 KiB
Ruby
Raw Permalink Normal View History

2013-08-01 10:33:49 +08:00
# Settings specified here will take precedence over those in config/application.rb
RedmineApp::Application.configure do
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
2013-08-01 10:33:49 +08:00
#####
# 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
2016-05-13 11:32:50 +08:00
# config.logger = Logger.new('log/production.log', 'daily',1048576) # daily, weekly or monthly
2013-08-01 10:33:49 +08:00
config.action_controller.perform_caching = true
2015-04-22 13:01:33 +08:00
# to additional_environment.rb
# config.cache_store = :file_store, "#{Rails.root }/files/cache_store/"
# config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 90.minutes }
#
2013-08-01 10:33:49 +08:00
# 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
# No email in production log
config.action_mailer.logger = nil
config.active_support.deprecation = :log
end