production.rb 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #---
  2. # Excerpted from "Agile Web Development with Rails",
  3. # published by The Pragmatic Bookshelf.
  4. # Copyrights apply to this code. It may not be used to create training material,
  5. # courses, books, articles, and the like. Contact us if you are in doubt.
  6. # We make no guarantees that this code is fit for any purpose.
  7. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  8. #---
  9. #---
  10. # Excerpted from "Agile Web Development with Rails, 4rd Ed.",
  11. # published by The Pragmatic Bookshelf.
  12. # Copyrights apply to this code. It may not be used to create training material,
  13. # courses, books, articles, and the like. Contact us if you are in doubt.
  14. # We make no guarantees that this code is fit for any purpose.
  15. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  16. #---
  17. DepotClient::Application.configure do
  18. # Settings specified here will take precedence over those in config/application.rb
  19. # The production environment is meant for finished, "live" apps.
  20. # Code is not reloaded between requests
  21. config.cache_classes = true
  22. # Full error reports are disabled and caching is turned on
  23. config.consider_all_requests_local = false
  24. config.action_controller.perform_caching = true
  25. # Specifies the header that your server uses for sending files
  26. config.action_dispatch.x_sendfile_header = "X-Sendfile"
  27. # For nginx:
  28. # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
  29. # If you have no front-end server that supports something like X-Sendfile,
  30. # just comment this out and Rails will serve the files
  31. # See everything in the log (default is :info)
  32. # config.log_level = :debug
  33. # Use a different logger for distributed setups
  34. # config.logger = SyslogLogger.new
  35. # Use a different cache store in production
  36. # config.cache_store = :mem_cache_store
  37. # Disable Rails's static asset server
  38. # In production, Apache or nginx will already do this
  39. config.serve_static_assets = false
  40. # Enable serving of images, stylesheets, and javascripts from an asset server
  41. # config.action_controller.asset_host = "http://assets.example.com"
  42. # Disable delivery errors, bad email addresses will be ignored
  43. # config.action_mailer.raise_delivery_errors = false
  44. # Enable threaded mode
  45. # config.threadsafe!
  46. # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  47. # the I18n.default_locale when a translation can not be found)
  48. config.i18n.fallbacks = true
  49. # Send deprecation notices to registered listeners
  50. config.active_support.deprecation = :notify
  51. end