WIP
This commit is contained in:
parent
f7561acf3c
commit
80e851fb59
9 changed files with 131 additions and 76 deletions
|
|
@ -8,6 +8,7 @@ const logger = require('./logger')
|
|||
const poller = require('./poller')
|
||||
const settingsLoader = require('./settings-loader')
|
||||
const options = require('./options')
|
||||
const ofac = require('./ofac/index')
|
||||
|
||||
const devMode = argv.dev || options.http
|
||||
|
||||
|
|
@ -32,7 +33,8 @@ function run () {
|
|||
}
|
||||
|
||||
function runOnce () {
|
||||
return settingsLoader.loadLatest()
|
||||
return ofac.load()
|
||||
.then(settingsLoader.loadLatest())
|
||||
.then(settings => {
|
||||
poller.start(settings)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue