Use Rails plugin generator and adapt

This commit is contained in:
Chris Seelus
2021-02-10 22:10:43 +01:00
parent 9b9193e1c8
commit d53520bbf0
22 changed files with 385 additions and 106 deletions

View File

@@ -171,19 +171,13 @@ There are "start", "stop", and "restart" commands.
## Web UI
Crono comes with a Sinatra application that can display the current state of Crono jobs.
Add `sinatra` and `haml` to your Gemfile
```ruby
gem 'haml'
gem 'sinatra', require: nil
```
Crono can display the current state of Crono jobs.
Add the following to your `config/routes.rb`:
```ruby
Rails.application.routes.draw do
mount Crono::Web, at: '/crono'
mount Crono::Engine, at: '/crono'
...
```