Skip to content

Commit

Permalink
support new airbrake client
Browse files Browse the repository at this point in the history
  • Loading branch information
tompesman committed Jul 10, 2017
1 parent beae63f commit 128cf02
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bin/pushr
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,13 @@ Pushr::Core.configure do |config|
config.redis = x
end

if ENV['AIRBRAKE_API_KEY']
if ENV['AIRBRAKE_API_KEY'] || ENV['AIRBRAKE_PROJECT_KEY']
require 'airbrake'
settings.error_notification = true
Airbrake.configure do |airbrake|
airbrake.api_key = ENV['AIRBRAKE_API_KEY']
airbrake.host = ENV['AIRBRAKE_HOST']
airbrake.port = ENV['AIRBRAKE_PORT'] ? ENV['AIRBRAKE_PORT'].to_i : 80
airbrake.secure = airbrake.port == 443
airbrake.host = ENV['AIRBRAKE_HOST']
airbrake.project_id = ENV['AIRBRAKE_PROJECT_ID'] || 1
airbrake.project_key = ENV['AIRBRAKE_API_KEY'] || ENV['AIRBRAKE_PROJECT_KEY']
end
end

Expand Down

0 comments on commit 128cf02

Please sign in to comment.