Add exception notification in development env

This commit is contained in:
Christophe Vilayphiou 2012-01-13 15:49:07 +08:00
parent 4be97f6ea6
commit a55a93cb3b
3 changed files with 23 additions and 1 deletions

View File

@ -19,6 +19,8 @@ gem 'sprockets'
gem 'radius'
gem 'exception_notification'
# For linux
gem 'therubyracer'

View File

@ -69,6 +69,8 @@ GEM
warden (~> 1.1)
diff-lcs (1.1.3)
erubis (2.7.0)
exception_notification (2.5.2)
actionmailer (>= 3.0.4)
execjs (1.2.9)
multi_json (~> 1.0)
factory_girl (2.3.2)
@ -97,7 +99,7 @@ GEM
multi_json (1.0.4)
orm_adapter (0.0.5)
polyglot (0.3.3)
rack (1.3.5)
rack (1.3.6)
rack-cache (1.1)
rack (>= 0.4)
rack-mount (0.8.3)
@ -196,6 +198,7 @@ DEPENDENCIES
database_cleaner
delorean
devise
exception_notification
execjs
factory_girl_rails
jquery-rails

View File

@ -23,5 +23,22 @@ PrototypeR4::Application.configure do
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin
config.middleware.use ExceptionNotifier,
:email_prefix => "[R4_error]",
:sender_address => %{"notifier" <redmine@rulingcom.com>},
:exception_recipients => %w{chris@rulingcom.com}
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:tls => true,
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => '587',
:domain => "smtp.gmail.com",
:authentication => "plain",
:user_name => "redmine@rulingcom.com",
:password => "rulingredmine" }
end