diff --git a/app/middleware/heartbeat.rb b/app/middleware/heartbeat.rb deleted file mode 100644 index f4452a5..0000000 --- a/app/middleware/heartbeat.rb +++ /dev/null @@ -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 diff --git a/config/application.rb b/config/application.rb index baf2a21..53e5a6d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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