Skip to content

Commit

Permalink
Add AIRBRAKE_ENVIRONMENT.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Jun 1, 2019
1 parent 675b3dc commit 5afd460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ REDIS_URL=redis://localhost:6379/3
#AIRBRAKE_HOST=
#AIRBRAKE_API_KEY=
#AIRBRAKE_PROJECT_ID=
#AIRBRAKE_ENVIRONMENT=development

# New Relic
#NEW_RELIC_LICENSE_KEY=
Expand Down
6 changes: 2 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ gem "prometheus-client", require: "prometheus/middleware/exporter"
gem "feedjira"
gem "opengraph_parser"

group :production do
gem "airbrake", "= 9.2.1", require: false
gem "newrelic_rpm", require: false
end
gem "airbrake", "= 9.2.1", require: false
gem "newrelic_rpm", require: false

group :development do
gem "sinatra-contrib", require: "sinatra/reloader"
Expand Down
1 change: 1 addition & 0 deletions config/initializers/05-airbrake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
config.host = ENV["AIRBRAKE_HOST"] if ENV["AIRBRAKE_HOST"]
config.project_id = ENV["AIRBRAKE_PROJECT_ID"]
config.project_key = ENV["AIRBRAKE_API_KEY"]
config.environment = ENV["AIRBRAKE_ENVIRONMENT"] if ENV["AIRBRAKE_ENVIRONMENT"]
end

use Airbrake::Rack::Middleware
Expand Down

0 comments on commit 5afd460

Please sign in to comment.