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:
parent
e86fbbaec5
commit
180a23924e
@ -48,13 +48,15 @@ module DanBarberPhoto
|
||||
# Prefer SASS syntax for stylesheets
|
||||
config.sass.preferred_syntax = :sass
|
||||
|
||||
# Heartbeat
|
||||
config.middleware.insert_before 0, 'Heartbeat'
|
||||
if Rails.env.production?
|
||||
# Heartbeat
|
||||
config.middleware.insert_before 0, 'Heartbeat'
|
||||
|
||||
# Rack Middleware
|
||||
config.middleware.use ::ExceptionNotifier, :email_prefix => "[DanBarberPhoto] ",
|
||||
:sender_address => %{"Exception Notification" <notifier@danbarberphoto.com>},
|
||||
:exception_recipients => %w{dan@danbarberphoto.com}
|
||||
# Rack Middleware
|
||||
config.middleware.use ::ExceptionNotifier, :email_prefix => "[DanBarberPhoto] ",
|
||||
:sender_address => %{"Exception Notification" <notifier@danbarberphoto.com>},
|
||||
:exception_recipients => %w{dan@danbarberphoto.com}
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user