foreman start
or
- bundle exec sidekiq -C ../lib/sidekiq-worker -q check -v
Based on the app server used, http://localhost:<port-number> to open the app.
- CRUD Operations
- Sidekiq Job getting ON
- Pinging on regular intervals and emailing when the server goes down
I have hosted the latest code on an Vultr instance.
These instructions will help setup the project locally.
- Clone the repository
git clone https://github.com/neha9t/health-check
-
Follow the instructions here to install RVM. Make sure to source rvm as mentioned at the end of the installation instructions.
-
Install Ruby-2.4.0 using
rvm install ruby-2.4.0 -
Install bundler using
gem install bundler. -
Redis : - OSX : brew install redis - Ubuntu : https://redis.io/topics/quickstart
-
cdinto the project directory and runbundle install. -
Setup the database and run migrations.
-
Go to config/database.yml and change your
usernameandpasswordto 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
-
Based on the app server used,
http://localhost:<port-number>to open the app. -
Run 'redis-server'
-
Run Sidekiq : ' bundle exec sidekiq -C ../lib/sidekiq-worker -q check -v'