Commit feca3b96

mo khan <mo@mokhan.ca>
2013-05-05 04:03:11
add airbrake and bullet gems
1 parent 571bdda
Changed files (5)
config/environments/development.rb
@@ -35,4 +35,14 @@ Cake::Application.configure do
   # Log the query plan for queries taking more than this (works
   # with SQLite, MySQL, and PostgreSQL)
   config.active_record.auto_explain_threshold_in_seconds = 0.5
+
+  config.after_initialize do
+    Bullet.enable = true
+    Bullet.alert = true
+    Bullet.bullet_logger = true
+    Bullet.console = true
+    #Bullet.growl = true
+    Bullet.rails_logger = true
+    Bullet.airbrake = true
+  end
 end
config/initializers/airbrake.rb
@@ -0,0 +1,3 @@
+Airbrake.configure do |config|
+  config.api_key = '1977a9f3f3148e1af8747bcb4f5ecde4'
+end
config/deploy.rb
@@ -54,3 +54,6 @@ namespace :delayed_job do
     run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job restart"
   end
 end
+
+        require './config/boot'
+        require 'airbrake/capistrano'
Gemfile
@@ -19,6 +19,7 @@ gem 'daemons'
 gem 'jquery-fileupload-rails'
 gem 'capistrano-gitflow'
 gem 'dotenv-rails'
+gem 'airbrake'
 
 group :development, :test do
   gem 'pg'
@@ -28,6 +29,7 @@ group :development, :test do
   gem 'capistrano-ext'
   gem 'rvm-capistrano'
   gem 'better_errors'
+  gem 'bullet'
 end
 group :test do
   gem 'sqlite3'
Gemfile.lock
@@ -46,6 +46,10 @@ GEM
       activerecord (>= 3.0)
       activesupport (~> 3.0)
       awesome_nested_set (>= 2.0)
+    airbrake (3.1.12)
+      activesupport
+      builder
+      json
     arbre (1.0.1)
       activesupport (>= 3.0.0)
     arel (3.0.2)
@@ -64,6 +68,8 @@ GEM
       sass (>= 3.2.0)
       thor
     builder (3.0.4)
+    bullet (4.6.0)
+      uniform_notifier
     capistrano (2.14.2)
       highline
       net-scp (>= 1.0.0)
@@ -270,6 +276,7 @@ GEM
     uglifier (1.3.0)
       execjs (>= 0.3.0)
       multi_json (~> 1.0, >= 1.0.2)
+    uniform_notifier (1.2.0)
     warden (1.2.1)
       rack (>= 1.0)
     websocket (1.0.7)
@@ -283,9 +290,11 @@ DEPENDENCIES
   activeadmin
   acts-as-taggable-on
   acts_as_commentable_with_threading
+  airbrake
   asset_sync
   better_errors
   bootstrap-sass
+  bullet
   capistrano
   capistrano-ext
   capistrano-gitflow