Skip to content

Commit

Permalink
#35 add exception notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Özgür ÖZKAN committed Jun 7, 2013
1 parent 26e1ac6 commit 9967bcc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,24 @@ def configure_smtp
configure_environment 'production', config
end

# Interval: Setup exception_notification
def set_exception_notification
config = <<-RUBY
config.middleware.use ExceptionNotifier,
:email_prefix => "[#{app_name}] ",
:sender_address => %{"notifier" <no-reply@#{app_name}.com>},
:exception_recipients => %w{[email protected]} #TODO change this with original
RUBY

configure_environment 'production', config
end

# Interval: Configure action mailer
def configure_action_mailer
action_mailer_host 'development', "#{app_name}.dev"
action_mailer_host 'test', "#{app_name}.com"
action_mailer_host 'production', "#{app_name}.com"

end

# Interval: Setup letter opener
Expand Down

0 comments on commit 9967bcc

Please sign in to comment.