Add exception notification in development env
This commit is contained in:
parent
4be97f6ea6
commit
a55a93cb3b
2
Gemfile
2
Gemfile
|
@ -19,6 +19,8 @@ gem 'sprockets'
|
||||||
|
|
||||||
gem 'radius'
|
gem 'radius'
|
||||||
|
|
||||||
|
gem 'exception_notification'
|
||||||
|
|
||||||
# For linux
|
# For linux
|
||||||
gem 'therubyracer'
|
gem 'therubyracer'
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,8 @@ GEM
|
||||||
warden (~> 1.1)
|
warden (~> 1.1)
|
||||||
diff-lcs (1.1.3)
|
diff-lcs (1.1.3)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
|
exception_notification (2.5.2)
|
||||||
|
actionmailer (>= 3.0.4)
|
||||||
execjs (1.2.9)
|
execjs (1.2.9)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
factory_girl (2.3.2)
|
factory_girl (2.3.2)
|
||||||
|
@ -97,7 +99,7 @@ GEM
|
||||||
multi_json (1.0.4)
|
multi_json (1.0.4)
|
||||||
orm_adapter (0.0.5)
|
orm_adapter (0.0.5)
|
||||||
polyglot (0.3.3)
|
polyglot (0.3.3)
|
||||||
rack (1.3.5)
|
rack (1.3.6)
|
||||||
rack-cache (1.1)
|
rack-cache (1.1)
|
||||||
rack (>= 0.4)
|
rack (>= 0.4)
|
||||||
rack-mount (0.8.3)
|
rack-mount (0.8.3)
|
||||||
|
@ -196,6 +198,7 @@ DEPENDENCIES
|
||||||
database_cleaner
|
database_cleaner
|
||||||
delorean
|
delorean
|
||||||
devise
|
devise
|
||||||
|
exception_notification
|
||||||
execjs
|
execjs
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
jquery-rails
|
jquery-rails
|
||||||
|
|
|
@ -23,5 +23,22 @@ PrototypeR4::Application.configure do
|
||||||
# Only use best-standards-support built into browsers
|
# Only use best-standards-support built into browsers
|
||||||
config.action_dispatch.best_standards_support = :builtin
|
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
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue