This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Up: replace Airbrake with ExceptionNotification
- Loading branch information
Showing
6 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,4 +96,11 @@ | |
:domain => 'oddityavenue.com', | ||
:authentication => :plain | ||
} | ||
|
||
Rails.application.config.middleware.use ExceptionNotification::Rack, | ||
:email => { | ||
:email_prefix => "[ERROR] ", | ||
:sender_address => %{"Exception Notifier" <[email protected]>}, | ||
:exception_recipients => %w{[email protected]} | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,4 +96,11 @@ | |
:domain => 'oddityavenue.com', | ||
:authentication => :plain | ||
} | ||
|
||
Rails.application.config.middleware.use ExceptionNotification::Rack, | ||
:email => { | ||
:email_prefix => "[ERROR] ", | ||
:sender_address => %{"Exception Notifier (Beta)" <[email protected]>}, | ||
:exception_recipients => %w{[email protected]} | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,11 @@ | |
config.action_mailer.delivery_method = :test | ||
config.action_mailer.default_url_options = { :host => 'localhost:3000' } | ||
config.action_mailer.smtp_settings = { :domain => 'localhost:3000' } | ||
|
||
Rails.application.config.middleware.use ExceptionNotification::Rack, | ||
:email => { | ||
:email_prefix => "[ERROR] ", | ||
:sender_address => %{"Exception Notifier" <[email protected]>}, | ||
:exception_recipients => %w{[email protected]} | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
=begin TODO: upgrade for Rails 5 | ||
Airbrake.configure do |config| | ||
config.api_key = {:project => 'oddityavenue', # the identifier you specified for your project in Redmine | ||
:tracker => 'Bug', # the name of your Tracker of choice in Redmine | ||
:api_key => ENV['HOPTOAD_API_KEY'], # the key you generated before in Redmine (NOT YOUR HOPTOAD API KEY!) | ||
:assigned_to => ENV['HOPTOAD_USERNAME'], # the login of a user the ticket should get assigned to by default (optional.) | ||
:priority => ENV['HOPTOAD_PRIORITY'], # the default priority (use a number, not a name. optional.) | ||
:environment => ENV['RAILS_ENV'], # application environment, gets prepended to the issue's subject and is stored as a custom issue field. useful to distinguish errors on a test system from those on the production system (optional). | ||
}.to_yaml | ||
config.host = ENV['HOPTOAD_HOSTNAME'] # the hostname your Redmine runs at | ||
config.port = ENV['HOPTOAD_PORTNUM'] # the port your Redmine runs at | ||
config.secure = (config.port == 443) # sends data to your server via SSL (optional.) | ||
=begin | ||
Airbrake.configure do |c| | ||
c.host = "http://redmine.seawolfsanctuary.com/" | ||
c.environment = ENV['RAILS_ENV'] | ||
c.project_id = 11 | ||
c.project_key = CGI.escape({ | ||
tracker: 'Bug', | ||
api_key: 'VgAabBoVyXBPjBCDVxBx', | ||
project: 'oddityavenue' | ||
}.to_json) | ||
end | ||
=end |