1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Exclude middleware when not in production.

This commit is contained in:
Dan Barber 2013-05-21 21:10:19 +01:00
parent e86fbbaec5
commit 180a23924e

View File

@ -48,13 +48,15 @@ module DanBarberPhoto
# Prefer SASS syntax for stylesheets # Prefer SASS syntax for stylesheets
config.sass.preferred_syntax = :sass config.sass.preferred_syntax = :sass
# Heartbeat if Rails.env.production?
config.middleware.insert_before 0, 'Heartbeat' # Heartbeat
config.middleware.insert_before 0, 'Heartbeat'
# Rack Middleware # Rack Middleware
config.middleware.use ::ExceptionNotifier, :email_prefix => "[DanBarberPhoto] ", config.middleware.use ::ExceptionNotifier, :email_prefix => "[DanBarberPhoto] ",
:sender_address => %{"Exception Notification" <notifier@danbarberphoto.com>}, :sender_address => %{"Exception Notification" <notifier@danbarberphoto.com>},
:exception_recipients => %w{dan@danbarberphoto.com} :exception_recipients => %w{dan@danbarberphoto.com}
end
end end
end end