Skip to content

Instantly share code, notes, and snippets.

@josephbridgwaterrowe
Last active August 29, 2015 14:09
Show Gist options
  • Save josephbridgwaterrowe/37efcdaea8f604f1b105 to your computer and use it in GitHub Desktop.
Save josephbridgwaterrowe/37efcdaea8f604f1b105 to your computer and use it in GitHub Desktop.
Airbrake configuration from Figaro.
# /config/initializers/airbrake.rb
Airbrake.configure do |config|
config.api_key = Figaro.env.airbrake_api_key
config.host = Figaro.env.airbrake_host
config.port = 80
config.secure = config.port == 443
end
# /config/application.yml
airbrake_api_key: 'airbrake_api_key'
airbrake_host: 'airbrake_host'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment