OSDN Git Service

誤用の可能性があるデバッグコードを取り除いた
[elecoma/elecoma.git] / config / environments / production.rb
1 # Settings specified here will take precedence over those in config/environment.rb
2
3 # The production environment is meant for finished, "live" apps.
4 # Code is not reloaded between requests
5 config.cache_classes = true
6
7 # Use a different logger for distributed setups
8 # config.logger = SyslogLogger.new
9 config.logger = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log", 'daily')
10
11 # Full error reports are disabled and caching is turned on
12 config.action_controller.consider_all_requests_local = false
13 config.action_controller.perform_caching             = true
14 config.action_view.cache_template_loading            = true
15
16 # Use a different cache store in production
17 # config.cache_store = :mem_cache_store
18  config.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
19
20 # Enable serving of images, stylesheets, and javascripts from an asset server
21 # config.action_controller.asset_host                  = "http://assets.example.com"
22
23 # Disable delivery errors, bad email addresses will be ignored
24 config.action_mailer.raise_delivery_errors = false
25
26 ActionMailer::Base.delivery_method = :smtp
27 ActionMailer::Base.smtp_settings = {
28   :domain => 'localhost',
29   :address => 'localhost',
30   :port => 25
31 }
32 ActionMailer::Base.default_charset = 'iso-2022-jp'
33  
34 config.log_level = :debug
35