mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-10 11:23:50 +02:00
Use Rails plugin generator and adapt
This commit is contained in:
10
README.md
10
README.md
@@ -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'
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user