We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0636b69 + 943cb0e commit 5fcf881Copy full SHA for 5fcf881
config/initializers/airbrake.rb
@@ -1,3 +1,10 @@
1
-Airbrake.configure do |config|
2
- config.api_key = 'b5d4af886affb6333163e4850d3447a4'
+if defined(Airbrake)
+ Airbrake.configure do |config|
3
+ config.api_key = ENV['AIRBRAKE_API']
4
+ config.host = ENV['AIRBRAKE_HOST']
5
+ config.port = 80
6
+ config.secure = config.port == 443
7
+ end
8
+else
9
+ Rails.logger.warn '[WTF WARNING] Someone deleted airbrake and forgot the initializer'
10
end
0 commit comments