No commit activity in last 3 years
No release in over 3 years
Mounts a Rack app at /ping/? that returns 200 OK for AWS load balancers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 3.0
 Project Readme

OpenStax Healthcheck

Gem Version Tests

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/.