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
18 cache_dir = File.expand_path(File.join(RAILS_ROOT, 'public', 'cache'))
19 config.action_controller.page_cache_directory = cache_dir
20 config.action_controller.fragment_cache_store = :file_store, File.join(cache_dir, "fragments")
21
22 # Enable serving of images, stylesheets, and javascripts from an asset server
23 # config.action_controller.asset_host = "http://assets.example.com"
24
25 # ActionMailer::Base.default_url_options[:protocol] = 'https'
26 ActionMailer::Base.default_url_options[:host] =
27 YAML.load_file(File.join(RAILS_ROOT, "config/gitorious.yml"))["gitorious_host"]
28 # Disable delivery errors, bad email addresses will be ignored
29 # config.action_mailer.raise_delivery_errors = false
30 ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT,
31 "config/gitorious.yml"))["exception_notification_emails"]
32 ExceptionNotifier.class_eval do
33 remove_method :template_root
34 ExceptionNotifier.template_root = "#{RAILS_ROOT}/vendor/plugins/exception_notification/lib/../views"
35 end