Skip to content

Commit

Permalink
Adds Errbit integration
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed May 6, 2012
1 parent dc69109 commit 0621312
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Expand Up @@ -24,6 +24,9 @@ gem 'paperclip'
gem 'remotipart'
gem 'jquery-rails'

# Making the world a better, more stable place
gem 'airbrake'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -38,6 +38,9 @@ GEM
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.2.7)
airbrake (3.0.9)
activesupport
builder
arel (3.0.2)
aws-sdk (1.3.8)
httparty (~> 0.7)
Expand Down Expand Up @@ -177,6 +180,7 @@ PLATFORMS

DEPENDENCIES
_bushido-faye (= 0.8.2)
airbrake
aws-sdk
bourbon
cloudfuji
Expand Down
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.erb
Expand Up @@ -6,6 +6,8 @@
<%= stylesheet_link_tag "http://fonts.googleapis.com/css?family=PT+Sans:400,700" %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= airbrake_javascript_notifier %>
<%- Kandan::Config.broadcaster.assets.each do |asset| %>
<%= javascript_include_tag asset %>
<%- end %>
Expand Down
10 changes: 10 additions & 0 deletions config/initializers/errbit.rb
@@ -0,0 +1,10 @@
if ENV['ERRBIT_API_KEY']
Airbrake.configure do |config|
config.api_key = ENV['ERRBIT_API_KEY']
config.host = ENV['ERRBIT_HOST']
config.port = ENV['ERRBIT_PORT']
config.secure = config.port == 443
end

puts "AIRBRAKE ENABLED!"
end

0 comments on commit 0621312

Please sign in to comment.