Mounts a 200 response at /ping and /ping/ for AWS load balancers
Switch branches/tags
Clone or download
Pull request Compare This branch is 5 commits ahead of lserman:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
MIT-LICENSE
README.md
Rakefile
healthcheck.gemspec

README.md

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