production.rb 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. AdminFohowCom::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 = false
  5. config.eager_load = true
  6. # Full error reports are disabled and caching is turned on
  7. config.consider_all_requests_local = false
  8. config.action_controller.perform_caching = true
  9. # Disable Rails's static asset server (Apache or nginx will already do this)
  10. config.serve_static_files = false
  11. # Compress JavaScripts and CSS
  12. config.assets.compress = true
  13. # Don't fallback to assets pipeline if a precompiled asset is missed
  14. config.assets.compile = true
  15. # Generate digests for assets URLs
  16. config.assets.digest = true
  17. # Defaults to nil and saved in location specified by config.assets.prefix
  18. # config.assets.manifest = YOUR_PATH
  19. # Specifies the header that your server uses for sending files
  20. # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
  21. # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
  22. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
  23. # config.force_ssl = true
  24. # See everything in the log (default is :info)
  25. config.log_level = :info
  26. # Prepend all log lines with the following tags
  27. # config.log_tags = [ :subdomain, :uuid ]
  28. # Use a different logger for distributed setups
  29. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
  30. # Use a different cache store in production
  31. # config.cache_store = :mem_cache_store
  32. # Enable serving of images, stylesheets, and JavaScripts from an asset server
  33. # config.action_controller.asset_host = "http://assets.example.com"
  34. # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
  35. # config.assets.precompile += %w( search.js )
  36. # config.assets.precompile << '*.js'
  37. # Disable delivery errors, bad email addresses will be ignored
  38. # config.action_mailer.raise_delivery_errors = false
  39. #邮箱 验证
  40. # config.action_mailer.default_url_options = { :host => 'localhost:3000' }
  41. # Enable threaded mode
  42. # config.threadsafe!
  43. # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  44. # the I18n.default_locale when a translation can not be found)
  45. config.i18n.fallbacks = true
  46. # Send deprecation notices to registered listeners
  47. config.active_support.deprecation = :notify
  48. # Log the query plan for queries taking more than this (works
  49. # with SQLite, MySQL, and PostgreSQL)
  50. # config.active_record.auto_explain_threshold_in_seconds = 0.5
  51. end