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
|
# 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user