From 25a15259bc10291258ac941c56e00991afe5ebc7 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg <maxwell@joindiaspora.com> Date: Sun, 22 Jan 2012 11:06:18 -0800 Subject: [PATCH] explicitly require airbrake middleware if it is configured.... i should not have to do this however --- config/environments/production.rb | 2 +- config/initializers/airbrake.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 6d51c531c3..c2e5569475 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -35,7 +35,7 @@ Diaspora::Application.configure do # Disable Rails's static asset server # In production, Apache or nginx will already do this - config.serve_static_assets = false + config.serve_static_assets = true # Enable serving of images, stylesheets, and javascripts from an asset server diff --git a/config/initializers/airbrake.rb b/config/initializers/airbrake.rb index 6cc4ade864..de1e16f0a3 100644 --- a/config/initializers/airbrake.rb +++ b/config/initializers/airbrake.rb @@ -4,7 +4,11 @@ if AppConfig[:airbrake_api_key].present? require 'airbrake' + puts "in airbrake" Airbrake.configure do |config| config.api_key = AppConfig[:airbrake_api_key] end + + + Rails.application.config.middleware.insert_before 1, Airbrake::Rack end -- GitLab