The expletive you use when your code throws errors in production. Also, a gem that automatically creates GitHub issues when your app throws errors.
- Add the following to your Gemfile:
gem 'eff'
- Add this to
config/environments/production.rb
:
config.middleware.use Eff::ExceptionHandler,
Eff::GithubNotifier.new(
GithubTarget.new(ENV['GITHUB_USERNAME'], ENV['GITHUB_REPOSITORY']),
ENV['GITHUB_OAUTH_TOKEN'])
- Profit!