- Softwrap mode:
- Toggle
Blob of config/environments/production.rb
(raw blob data)
| 1 | # Settings specified here will take precedence over those in config/environment.rb |
| 2 | |
| 3 | # The production environment is meant for finished, "live" apps. |
| 4 | # Code is not reloaded between requests |
| 5 | config.cache_classes = true |
| 6 | |
| 7 | # Use a different logger for distributed setups |
| 8 | # config.logger = SyslogLogger.new |
| 9 | |
| 10 | # require 'hodel_3000_compliant_logger' |
| 11 | # config.logger = Hodel3000CompliantLogger.new(config.log_path) |
| 12 | config.log_level = :warn |
| 13 | |
| 14 | # Full error reports are disabled and caching is turned on |
| 15 | config.action_controller.consider_all_requests_local = false |
| 16 | config.action_controller.perform_caching = true |
| 17 | config.action_view.cache_template_extensions = true |
| 18 | |
| 19 | cache_dir = File.expand_path(File.join(RAILS_ROOT, 'public', 'cache')) |
| 20 | config.action_controller.page_cache_directory = cache_dir |
| 21 | config.action_controller.fragment_cache_store = :file_store, File.join(cache_dir, "fragments") |
| 22 | |
| 23 | # Enable serving of images, stylesheets, and javascripts from an asset server |
| 24 | # config.action_controller.asset_host = "http://assets.example.com" |
| 25 | |
| 26 | # Disable delivery errors, bad email addresses will be ignored |
| 27 | # config.action_mailer.raise_delivery_errors = false |
| 28 | |
| 29 | ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT, |
| 30 | "config/gitorious.yml"))["exception_notification_emails"] |
| 31 | ExceptionNotifier.class_eval do |
| 32 | remove_method :template_root |
| 33 | ExceptionNotifier.template_root = "#{RAILS_ROOT}/vendor/plugins/exception_notification/lib/../views" |
| 34 | end |
