Skip to content
A place to check health of your websites: RoR, Sidekiq, SendGrid
Ruby HTML JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
tmp
vendor/assets
.gitignore
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru
dump.rdb

README.md

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'

You can’t perform that action at this time.