Skip to content

neha9t/health-check

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

health-check

To start the application:

foreman start or

  • bundle exec sidekiq -C ../lib/sidekiq-worker -q check -v

To open the Application:

Based on the app server used, http://localhost:<port-number> to open the app.

Project Features

  1. CRUD Operations
  2. Sidekiq Job getting ON
  3. Pinging on regular intervals and emailing when the server goes down

Steps

I have hosted the latest code on an Vultr instance.

Installation

These instructions will help setup the project locally.

  1. Clone the repository

git clone https://github.com/neha9t/health-check

  1. Follow the instructions here to install RVM. Make sure to source rvm as mentioned at the end of the installation instructions.

  2. Install Ruby-2.4.0 using rvm install ruby-2.4.0

  3. Install bundler using gem install bundler.

  4. Redis : - OSX : brew install redis - Ubuntu : https://redis.io/topics/quickstart

  5. cd into the project directory and run bundle install.

  6. Setup the database and run migrations.

  • Go to config/database.yml and change your username and password to your SQLite credentials so that the app can access the database.

  • Run rake db:create.

  • Run rake db:migrate.

For production run RAILS_ENV=production rake db:create db:migrate

  1. Based on the app server used, http://localhost:<port-number> to open the app.

  2. Run 'redis-server'

  3. Run Sidekiq : ' bundle exec sidekiq -C ../lib/sidekiq-worker -q check -v'

About

A place to check health of your websites: RoR, Sidekiq, SendGrid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published