OSDN Git Service

config for rails3
[tdcgexplorer/nimono.git] / config / environments / production.rb
1 Nimono::Application.configure do
2   # Settings specified here will take precedence over those in config/environment.rb
3
4   # The production environment is meant for finished, "live" apps.
5   # Code is not reloaded between requests
6   config.cache_classes = true
7
8   # Full error reports are disabled and caching is turned on
9   config.aconsider_all_requests_local       = false
10   config.action_controller.perform_caching  = true
11
12   # Specifies the header that your server uses for sending files
13   config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
15   # For nginx:
16   # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
18   # If you have no front-end server that supports something like X-Sendfile,
19   # just comment this out and Rails will serve the files
20
21   # See everything in the log (default is :info)
22   # config.log_level = :debug
23
24   # Use a different logger for distributed setups
25   # config.logger = SyslogLogger.new
26
27   # Use a different cache store in production
28   # config.cache_store = :mem_cache_store
29
30   # Disable Rails's static asset server
31   # In production, Apache or nginx will already do this
32   config.serve_static_assets = false
33
34   # Enable serving of images, stylesheets, and javascripts from an asset server
35   # config.action_controller.asset_host = "http://assets.example.com"
36
37   # Disable delivery errors, bad email addresses will be ignored
38   # config.action_mailer.raise_delivery_errors = false
39
40   # Enable threaded mode
41   # config.threadsafe!
42
43   # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44   # the I18n.default_locale when a translation can not be found)
45   config.i18n.fallbacks = true
46
47   # Send deprecation notices to registered listeners
48   config.active_support.deprecation = :notify
49 end