Skip to content

Commit

Permalink
[chore] update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-wyatt committed Sep 6, 2018
1 parent 149e33b commit 828e8ca
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ Add the spool
```js
// config/main.js
import { AnalyticsSpool } from '@fabrix/spool-analytics'
import { CronsSpool } from '@fabrix/spool-crons'

export const main = {
spools: [
// ... other spools
CronsSpool,
AnalyticsSpool
]
}
Expand Down Expand Up @@ -77,25 +80,23 @@ export const analytics = {

```

Configure the engine to run the analytic crons
Configure the crons spool to run the analytic crons
```js
// config/engine.ts
export const engine = {
// config/crons.ts
export const crons = {
prefix: '/api/v1',
live_mode: false,
profile: 'testProfile',
crons_config: {
profiles: {
testProfile: [
'AnalyticsCron.minute',
'AnalyticsCron.hour',
'AnalyticsCron.day',
'AnalyticsCron.week',
'AnalyticsCron.month',
'AnalyticsCron.quarter',
'AnalyticsCron.year'
]
}
profiles: {
testProfile: [
'AnalyticsCron.minute',
'AnalyticsCron.hour',
'AnalyticsCron.day',
'AnalyticsCron.week',
'AnalyticsCron.month',
'AnalyticsCron.quarter',
'AnalyticsCron.year'
]
}
}
```
Expand Down

0 comments on commit 828e8ca

Please sign in to comment.