explicitly require airbrake middleware if it is configured.... i should not have to do this however
This commit is contained in:
parent
1d8dbdd8d8
commit
25a15259bc
2 changed files with 5 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ Diaspora::Application.configure do
|
||||||
|
|
||||||
# Disable Rails's static asset server
|
# Disable Rails's static asset server
|
||||||
# In production, Apache or nginx will already do this
|
# 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
|
# Enable serving of images, stylesheets, and javascripts from an asset server
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,11 @@
|
||||||
|
|
||||||
if AppConfig[:airbrake_api_key].present?
|
if AppConfig[:airbrake_api_key].present?
|
||||||
require 'airbrake'
|
require 'airbrake'
|
||||||
|
puts "in airbrake"
|
||||||
Airbrake.configure do |config|
|
Airbrake.configure do |config|
|
||||||
config.api_key = AppConfig[:airbrake_api_key]
|
config.api_key = AppConfig[:airbrake_api_key]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Rails.application.config.middleware.insert_before 1, Airbrake::Rack
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue