1 OpenStreetMap::Application.configure do
2 # Settings specified here will take precedence over those in config/application.rb
4 # The production environment is meant for finished, "live" apps.
5 # Code is not reloaded between requests
6 config.cache_classes = true
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
12 # Specifies the header that your server uses for sending files
13 config.action_dispatch.x_sendfile_header = "X-Sendfile"
16 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
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
21 # See everything in the log (default is :info)
22 # config.log_level = :debug
24 # Use a different log path in production
26 config.log_path = LOG_PATH
29 # Use a different logger for distributed setups
30 # config.logger = SyslogLogger.new
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
38 # Disable Rails's static asset server
39 # In production, Apache or nginx will already do this
40 config.serve_static_assets = false
42 # Enable serving of images, stylesheets, and javascripts from an asset server
43 # config.action_controller.asset_host = "http://assets.example.com"
45 # Disable delivery errors, bad email addresses will be ignored
46 # config.action_mailer.raise_delivery_errors = false
48 # Enable threaded mode
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
55 # Send deprecation notices to registered listeners
56 config.active_support.deprecation = :notify