Skip to content

Commit

Permalink
add bugsnag. closes #74
Browse files Browse the repository at this point in the history
  • Loading branch information
madhums committed Jan 5, 2024
1 parent d300cad commit 38d9105
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.development.local.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ DO_REGION=YOUR_REGION
DO_BUCKET=YOUR_BUCKET
DO_ACCESS_KEY=YOUR_KEY
DO_ACCESS_SECRET=YOUR_SECRET
BUGSNAG_API_KEY=
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ gem "image_processing", ">= 1.2"
gem "devise-i18n", "~> 1.10"

gem "dockerfile-rails", ">= 1.5", group: :development

gem "bugsnag", "~> 6.26"
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ GEM
bindex (0.8.1)
bootsnap (1.17.0)
msgpack (~> 1.2)
bugsnag (6.26.0)
concurrent-ruby (~> 1.0)
builder (3.2.4)
capybara (3.39.2)
addressable
Expand Down Expand Up @@ -468,6 +470,7 @@ DEPENDENCIES
administrate (~> 0.18.0)
aws-sdk-s3
bootsnap
bugsnag (~> 6.26)
capybara
country_select (~> 8.0.3)
cssbundling-rails (~> 1.1)
Expand Down
4 changes: 4 additions & 0 deletions config/initializers/bugsnag.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bugsnag.configure do |config|
config.api_key = ENV["BUGSNAG_API_KEY"]
config.enabled_release_stages = ["production"]
end

0 comments on commit 38d9105

Please sign in to comment.