]> git.openstreetmap.org Git - rails.git/blob - config/environments/production.rb
Update to rails 3
[rails.git] / config / environments / production.rb
1 OpenStreetMap::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.consider_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 log path in production
25   if defined?(LOG_PATH)
26     config.log_path = LOG_PATH
27   end
28
29   # Use a different logger for distributed setups
30   # config.logger = SyslogLogger.new
31
32   # Use a different cache store in production
33   if defined?(MEMCACHE_SERVERS)
34     MEMCACHE = Memcached::Rails.new(MEMCACHE_SERVERS, :binary_protocol => true)
35     config.cache_store = :mem_cache_store, MEMCACHE
36   end
37
38   # Disable Rails's static asset server
39   # In production, Apache or nginx will already do this
40   config.serve_static_assets = false
41
42   # Enable serving of images, stylesheets, and javascripts from an asset server
43   # config.action_controller.asset_host = "http://assets.example.com"
44
45   # Disable delivery errors, bad email addresses will be ignored
46   # config.action_mailer.raise_delivery_errors = false
47
48   # Enable threaded mode
49   # config.threadsafe!
50
51   # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
52   # the I18n.default_locale when a translation can not be found)
53   config.i18n.fallbacks = true
54
55   # Send deprecation notices to registered listeners
56   config.active_support.deprecation = :notify
57 end