production.rb 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. # Settings specified here will take precedence over those in config/environment.rb
  18. # The production environment is meant for finished, "live" apps.
  19. # Code is not reloaded between requests
  20. config.cache_classes = true
  21. # Full error reports are disabled and caching is turned on
  22. config.action_controller.consider_all_requests_local = false
  23. config.action_controller.perform_caching = true
  24. # See everything in the log (default is :info)
  25. # config.log_level = :debug
  26. # Use a different logger for distributed setups
  27. # config.logger = SyslogLogger.new
  28. # Use a different cache store in production
  29. # config.cache_store = :mem_cache_store
  30. # Disable Rails's static asset server
  31. # In production, Apache or nginx will already do this
  32. config.serve_static_assets = false
  33. # Enable serving of images, stylesheets, and javascripts from an asset server
  34. # config.action_controller.asset_host = "http://assets.example.com"
  35. # Disable delivery errors, bad email addresses will be ignored
  36. # config.action_mailer.raise_delivery_errors = false
  37. # Enable threaded mode
  38. # config.threadsafe!