mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
Add Honeybadger
This commit is contained in:
parent
f21c4d1555
commit
dc03a5838f
1
Gemfile
1
Gemfile
@ -3,6 +3,7 @@ source 'http://rubygems.org'
|
||||
ruby '2.1.1'
|
||||
|
||||
gem 'fixer'
|
||||
gem 'honeybadger'
|
||||
gem 'rake'
|
||||
gem 'sequel_pg'
|
||||
gem 'sinatra-jsonp'
|
||||
|
@ -12,7 +12,10 @@ GEM
|
||||
equalizer (0.0.9)
|
||||
fixer (0.5.0)
|
||||
nokogiri (~> 1.5)
|
||||
honeybadger (1.11.0)
|
||||
json
|
||||
ice_nine (0.11.0)
|
||||
json (1.8.1)
|
||||
kgio (2.9.2)
|
||||
mini_portile (0.5.2)
|
||||
minitest (5.3.0)
|
||||
@ -59,6 +62,7 @@ PLATFORMS
|
||||
|
||||
DEPENDENCIES
|
||||
fixer
|
||||
honeybadger
|
||||
minitest
|
||||
rack-test
|
||||
rake
|
||||
|
@ -1,3 +1,5 @@
|
||||
require './config/environment'
|
||||
require 'api'
|
||||
|
||||
use Honeybadger::Rack
|
||||
run Sinatra::Application
|
||||
|
10
config/initializers/honeybadger.rb
Normal file
10
config/initializers/honeybadger.rb
Normal file
@ -0,0 +1,10 @@
|
||||
require 'honeybadger'
|
||||
|
||||
Honeybadger.configure do |config|
|
||||
config.environment_name = App.env
|
||||
config.api_key = ENV['HONEYBADGER_API_KEY']
|
||||
|
||||
config.async do |notice|
|
||||
Thread.new { notice.deliver }
|
||||
end
|
||||
end
|
1
lib/tasks/honeybadger.rake
Normal file
1
lib/tasks/honeybadger.rake
Normal file
@ -0,0 +1 @@
|
||||
require 'honeybadger/shared_tasks'
|
Loading…
Reference in New Issue
Block a user