Added a /health
path that checks if DB exists and app responds
Fixed compatibility with newer Rails versions.
The gem is a simple solution if you want health check apis of latency and database.
- Put this into your Gemfile
gem 'rails-health-check'
and run bundle install
.
-
Start your rails application.
-
visit
/health/latency
and/health/db