production.rb 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Cimshq::Application.configure do
  2. # Settings specified here will take precedence over those in config/application.rb
  3. # Code is not reloaded between requests
  4. config.cache_classes = true
  5. # Full error reports are disabled and caching is turned on
  6. config.consider_all_requests_local = false
  7. config.action_controller.perform_caching = true
  8. # Disable Rails's static asset server (Apache or nginx will already do this)
  9. config.serve_static_assets = false
  10. # Compress JavaScripts and CSS
  11. config.assets.compress = true
  12. # Don't fallback to assets pipeline if a precompiled asset is missed
  13. config.assets.compile = false
  14. # Generate digests for assets URLs
  15. config.assets.digest = true
  16. # Defaults to Rails.root.join("public/assets")
  17. # config.assets.manifest = YOUR_PATH
  18. # Specifies the header that your server uses for sending files
  19. # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
  20. # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
  21. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  22. # config.force_ssl = true
  23. # See everything in the log (default is :info)
  24. # config.log_level = :debug
  25. # Use a different logger for distributed setups
  26. # config.logger = SyslogLogger.new
  27. # Use a different cache store in production
  28. # config.cache_store = :mem_cache_store
  29. # Enable serving of images, stylesheets, and JavaScripts from an asset server
  30. # config.action_controller.asset_host = "http://assets.example.com"
  31. # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
  32. # config.assets.precompile += %w( search.js )
  33. # Disable delivery errors, bad email addresses will be ignored
  34. # config.action_mailer.raise_delivery_errors = false
  35. # Enable threaded mode
  36. # config.threadsafe!
  37. # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  38. # the I18n.default_locale when a translation can not be found)
  39. config.i18n.fallbacks = true
  40. # Send deprecation notices to registered listeners
  41. config.active_support.deprecation = :notify
  42. end