Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 901 Bytes

README.md

File metadata and controls

65 lines (42 loc) · 901 Bytes

Kokpit

A simple dashboard framework written in AngularJS.

How to Use

git clone https://github.com/nukomeet/kokpit
cd kokpit
bundle

Run it as:

foreman start

Web application will be accessible at localhost:5000.

Requirements

You need Ruby 1.9.3, NodeJS and Redis running and up.

Backend

Workers use Sidekiq. Add your worker to workers/ directory and define its frequency in clock.rb.

How-To

Deploy on Heroku

Development Mode (1 process)

Comment this line:

handler { |worker| Object.const_get(worker).perform_async() }

and uncomment this one:

handler { |worker| Object.const_get(worker).new.perform() }

From Procfile remove this line:

worker: bundle exec sidekiq -r ./clock.rb -q kokpit

Production Mode

heroku create NAME
git push heroku master
heroku ps:scale clock=1 worker=1 web=1