Commit 8a878a191ca6879ae954f11ce0e4eda30996b8df

configure exception notification emails properly

Commit diff

config/environment.rb

 
5151 config.active_record.default_timezone = :utc
5252
5353 # See Rails::Configuration for more options
54
55 GitoriousConfig = YAML::load_file(File.join(RAILS_ROOT, "config/gitorious.yml"))
5654
5755 # Application configuration should go into files in config/initializers
5856 # -- all .rb files in that directory are automatically loaded
toggle raw diff

config/environments/development.rb

 
1717# Don't care if the mailer can't send
1818config.action_mailer.raise_delivery_errors = false
1919config.action_mailer.delivery_method = :test
20ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT,
21 "config/gitorious.yml"))["exception_notification_emails"]
toggle raw diff

config/environments/production.rb

 
2020# Disable delivery errors, bad email addresses will be ignored
2121# config.action_mailer.raise_delivery_errors = false
2222
23ExceptionNotifier.exception_recipients = GitoriousConfig["exception_notification_emails"]
23ExceptionNotifier.exception_recipients = YAML.load_file(File.join(RAILS_ROOT,
24 "config/gitorious.yml"))["exception_notification_emails"]
toggle raw diff

config/initializers/gitorious_config.rb

 
1GitoriousConfig = YAML::load_file(File.join(RAILS_ROOT, "config/gitorious.yml"))
toggle raw diff