Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yazumoto/healthcheck_rails
Simple health check plugin for Rails application.
https://github.com/yazumoto/healthcheck_rails
Last synced: 16 days ago
JSON representation
Simple health check plugin for Rails application.
- Host: GitHub
- URL: https://github.com/yazumoto/healthcheck_rails
- Owner: yazumoto
- License: mit
- Created: 2016-11-28T05:54:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T16:38:25.000Z (almost 2 years ago)
- Last Synced: 2024-12-05T14:08:39.446Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 47.9 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
HealthcheckRails
===HealthcheckRails is a simple health check module for your rails application.
When you use AWS (Amazon Web Service) ELB (Elastic load balancer), you need to add health check path.
This plugin just return 200(OK) status for your load balancer to make sure your rails application is running.## Installation
Add your Gemfile...
```
gem 'healthcheck_rails'
```And add your routes.rb...
```
# This is a sample. You can modify your route.
mount HealthcheckRails::Engine => 'healthcheck'
```## Usage
After installation you can access `/healthcheck` (example above) to receive 200(OK) status.```
# curl -i localhost:3000/healthcheck 15:12:04
HTTP/1.1 200 OK
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: text/plain; charset=utf-8
Cache-Control: no-cache
X-Request-Id: 4af7cbeb-654b-4fb8-8c2f-2774f50a0b95
X-Runtime: 0.058099
Server: WEBrick/1.3.1 (Ruby/2.3.1/2016-04-26)
Date: Mon, 28 Nov 2016 06:12:09 GMT
Content-Length: 0
Connection: Keep-Alive
```