mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Remove Heartbeat middleware
This commit is contained in:
parent
24fe503d04
commit
8c6cef9d6a
@ -1,13 +0,0 @@
|
||||
class Heartbeat
|
||||
def initialize(app)
|
||||
@app = app
|
||||
end
|
||||
|
||||
def call(env)
|
||||
if env['PATH_INFO'] == '/heartbeat'
|
||||
[200, { 'Content-Type' => 'text/plain' }, ['OK']]
|
||||
else
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -56,11 +56,5 @@ module DanBarberPhoto
|
||||
g.test_framework :rspec, fixture: true
|
||||
g.fixture_replacement :factory_girl, dir: 'spec/factories'
|
||||
end
|
||||
|
||||
if Rails.env.production?
|
||||
# Heartbeat
|
||||
config.middleware.insert_before 0, 'Heartbeat'
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user