diff --git a/config/environments/production.rb b/config/environments/production.rb index 6d51c531c..c2e556947 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 6cc4ade86..de1e16f0a 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