OSDN Git Service

6e9814058b430d92892b34dc5077fa7b4f00edeb
[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.consider_all_requests_local = true # TODO テストが終わったら戻すこと
14 config.action_controller.perform_caching             = true
15 config.action_view.cache_template_loading            = true
16
17 # Use a different cache store in production
18 # config.cache_store = :mem_cache_store
19  config.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"
20
21 # Enable serving of images, stylesheets, and javascripts from an asset server
22 # config.action_controller.asset_host                  = "http://assets.example.com"
23
24 # Disable delivery errors, bad email addresses will be ignored
25 config.action_mailer.raise_delivery_errors = false
26
27 ActionMailer::Base.delivery_method = :smtp
28 ActionMailer::Base.smtp_settings = {
29   :domain => 'localhost',
30   :address => 'localhost',
31   :port => 25
32 }
33 ActionMailer::Base.default_charset = 'iso-2022-jp'
34  
35 config.log_level = :debug
36