OpenStax Healthcheck

Build Status

This gem defines a route in your Rails app for ELB healthchecks. The only thing that this middleware does is return 200 OK if the route matches a regex pattern. The middleware is inserted into the Rack middleware stack before the Rails logger middleware, so requests to the healthcheck endpoint are not logged.

To use the gem, simply add it to your Gemfile:

gem 'openstax_healthcheck'

Your Rails app now returns a 200 OK for /ping and /ping/.