Is It Up?
A Ruby gem that adds a simple endpoint to see if your application "is up". The endpoint is handled via Rack middleware. A Railtie is provided for integration with Ruby on Rails apps.
Requirements
- Ruby 2.2 or higher
- Ruby on Rails 3.2 or higher
Installation
Add this line to your application's Gemfile:
gem 'is_it_up'
And then execute:
$ bundle
Or install it yourself as:
$ gem install is_it_up
Usage
IsItUp provides a monitoring URI that returns a JSON response:
% curl your-domain/is_it_up
{ "status": "ok", "code": 200 }
Contributing
- Fork it ( http://github.com/customink/is_it_up/fork )
- Run
bin/bootstrap_macos
(if using macOS) andbin/setup
to ensure your environment is configured for development - Run
bin/test
to ensure all tests pass - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Kudos
Various ideas borrowed from:
- is_it_up, a similar rack middleware.
- fitter_happer, a similar Rails plugin.