diff --git a/Capfile b/Capfile index edc6e4f..6c50ca0 100644 --- a/Capfile +++ b/Capfile @@ -14,3 +14,5 @@ require 'capistrano/passenger' # Load custom tasks from `lib/capistrano/tasks` if you have any defined Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } + +require 'capistrano/honeybadger' diff --git a/Gemfile b/Gemfile index 481fef9..d9bd114 100644 --- a/Gemfile +++ b/Gemfile @@ -11,6 +11,7 @@ gem 'activesupport' gem 'bootsnap', require: false gem 'ddtrace', require: 'ddtrace/auto_instrument' gem 'dogstatsd-ruby' +gem 'honeybadger' gem 'pg' gem 'puma', '~> 5.0' gem 'railties' diff --git a/Gemfile.lock b/Gemfile.lock index 414dd08..6f82af5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -61,6 +61,7 @@ GEM erubi (1.12.0) ffi (1.15.5) hashdiff (1.0.1) + honeybadger (5.2.1) i18n (1.14.1) concurrent-ruby (~> 1.0) json (2.6.3) @@ -208,6 +209,7 @@ DEPENDENCIES ddtrace dogstatsd-ruby ed25519 + honeybadger pg pry-byebug puma (~> 5.0) diff --git a/config/honeybadger.yml b/config/honeybadger.yml new file mode 100644 index 0000000..74704aa --- /dev/null +++ b/config/honeybadger.yml @@ -0,0 +1,24 @@ +--- +# For more options, see https://docs.honeybadger.io/lib/ruby/gem-reference/configuration +# The API key is configured as an environment variable in Princeton Ansible + +# 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