Permalink
Browse files

Updated exception notifiter settings to work in production

  • Loading branch information...
1 parent 219a61a commit bb36b09358a3000dc4923998e19f487423a965bb @jpallen jpallen committed Apr 26, 2010
Showing with 12 additions and 1 deletion.
  1. 0 chrootedbinary.c
  2. +8 −0 config/environments/production.rb
  3. +4 −1 config/initializers/clsi.rb
View
0 chrootedbinary.c 100644 → 100755
File mode changed.
View
8 config/environments/production.rb
@@ -22,3 +22,11 @@
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
+
+config.action_mailer.perform_deliveries = true
+config.action_mailer.raise_delivery_errors = true
+config.action_mailer.delivery_method = :smtp
+config.action_mailer.smtp_settings = HashWithIndifferentAccess.new(
+ YAML::load(ERB.new(File.read(File.join(RAILS_ROOT, 'config/mailer.yml'))).result)['production']
+)
+
View
5 config/initializers/clsi.rb
@@ -1,2 +1,5 @@
require 'exceptions'
-require 'utilities'
+require 'utilities'
+
+ExceptionNotifier.email_prefix = "[CLSI ERROR] "
+

0 comments on commit bb36b09

Please sign in to comment.