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

Remove Heartbeat middleware

This commit is contained in:
Daniel Barber 2017-07-18 17:21:43 -04:00
parent 24fe503d04
commit 8c6cef9d6a
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 0 additions and 19 deletions

View File

@ -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

View File

@ -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