improve config loading; remove debug

This commit is contained in:
Josh Harvey 2017-04-25 02:25:32 +03:00
parent 5f0b70ca42
commit 614c64646a
15 changed files with 198 additions and 193 deletions

View file

@ -6,7 +6,6 @@ const argv = require('minimist')(process.argv.slice(2))
const routes = require('./routes')
const logger = require('./logger')
const poller = require('./poller')
const verifySchema = require('./verify-schema')
const settingsLoader = require('./settings-loader')
const options = require('./options')
@ -33,8 +32,7 @@ function run () {
}
function runOnce () {
return verifySchema.valid()
.then(() => settingsLoader.loadLatest())
return settingsLoader.loadLatest()
.then(settings => {
poller.start(settings)