production.rb 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Nooo::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 nil and saved in location specified by config.assets.prefix
  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. # Prepend all log lines with the following tags
  26. # config.log_tags = [ :subdomain, :uuid ]
  27. # Use a different logger for distributed setups
  28. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
  29. # Use a different cache store in production
  30. # config.cache_store = :mem_cache_store
  31. # Enable serving of images, stylesheets, and JavaScripts from an asset server
  32. # config.action_controller.asset_host = "http://assets.example.com"
  33. # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
  34. # config.assets.precompile += %w( search.js )
  35. # Disable delivery errors, bad email addresses will be ignored
  36. # config.action_mailer.raise_delivery_errors = false
  37. #config.action_mailer.delivery_method = :sendmail
  38. # Enable threaded mode
  39. # config.threadsafe!
  40. # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  41. # the I18n.default_locale when a translation can not be found)
  42. config.i18n.fallbacks = true
  43. # Send deprecation notices to registered listeners
  44. config.active_support.deprecation = :notify
  45. # Log the query plan for queries taking more than this (works
  46. # with SQLite, MySQL, and PostgreSQL)
  47. # config.active_record.auto_explain_threshold_in_seconds = 0.5
  48. end