Skip to content

Commit

Permalink
Setup honeybadger
Browse files Browse the repository at this point in the history
Co-authored-by: Jess-White <Jess-White@users.noreply.github.com>
  • Loading branch information
cainwatson and Jess-White committed May 7, 2023
1 parent 2487521 commit 14b2912
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ ACTION_MAILER_GMAIL_ACCOUNT="your_test_email_address@gmail.com"
ACTION_MAILER_GMAIL_PASSWORD="gmail app password"
# this email is the inbox that receives emails sent to us through the boilerplate contact-us form:
CONTACT_SUBMISSION_ADMIN_EMAIL="boilerplate.app.test@gmail.com"

HONEYBADGER_API_KEY="xxx"
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ gem 'rack-cors'
gem 'ranked-model'

gem 'pundit', '~> 2.2'

gem "honeybadger", "~> 5.2"
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ GEM
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
honeybadger (5.2.1)
http (4.3.0)
addressable (~> 2.3)
http-cookie (~> 1.0)
Expand Down Expand Up @@ -283,6 +284,7 @@ DEPENDENCIES
factory_bot_rails (~> 6.2)
faker (~> 2.19)
guard-rspec
honeybadger (~> 5.2)
http
jb
jwt
Expand All @@ -304,4 +306,4 @@ RUBY VERSION
ruby 2.7.5p203

BUNDLED WITH
2.2.32
2.3.22
23 changes: 23 additions & 0 deletions config/honeybadger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
# For more options, see https://docs.honeybadger.io/lib/ruby/gem-reference/configuration

# The environment your app is running in.
env: "<%= Rails.env %>"

# The absolute path to your project folder.
root: "<%= Rails.root.to_s %>"

# Honeybadger won't report errors in these environments.
development_environments:
- test
- development

# By default, Honeybadger won't report errors in the development_environments.
# You can override this by explicitly setting report_data to true or false.
# report_data: true

# The current Git revision of your project. Defaults to the last commit hash.
# revision: null

# Enable verbose debug logging (useful for troubleshooting).
debug: false

0 comments on commit 14b2912

Please sign in to comment.