production.rb 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. config.action_mailer.delivery_method = :sendmail
  17. # Don't care if the mailer can't send (false), to care set to true.
  18. config.action_mailer.raise_delivery_errors = true
  19. config.action_mailer.default_url_options = { :host => 'qwnet-admin.quadaver.org' }
  20. # Defaults to nil and saved in location specified by config.assets.prefix
  21. # config.assets.manifest = YOUR_PATH
  22. # Specifies the header that your server uses for sending files
  23. # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
  24. # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
  25. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  26. # config.force_ssl = true
  27. # See everything in the log (default is :info)
  28. # config.log_level = :debug
  29. # Prepend all log lines with the following tags
  30. # config.log_tags = [ :subdomain, :uuid ]
  31. # Use a different logger for distributed setups
  32. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
  33. # Use a different cache store in production
  34. # config.cache_store = :mem_cache_store
  35. # Enable serving of images, stylesheets, and JavaScripts from an asset server
  36. # config.action_controller.asset_host = "http://assets.example.com"
  37. # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
  38. # config.assets.precompile += %w( search.js )
  39. config.assets.precompile += %w[active_admin.css active_admin.js]
  40. # Disable delivery errors, bad email addresses will be ignored
  41. # config.action_mailer.raise_delivery_errors = false
  42. #config.action_mailer.delivery_method = :sendmail
  43. # Enable threaded mode
  44. # config.threadsafe!
  45. # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  46. # the I18n.default_locale when a translation can not be found)
  47. config.i18n.fallbacks = true
  48. # Send deprecation notices to registered listeners
  49. config.active_support.deprecation = :notify
  50. # Log the query plan for queries taking more than this (works
  51. # with SQLite, MySQL, and PostgreSQL)
  52. # config.active_record.auto_explain_threshold_in_seconds = 0.5
  53. end