feat: Kernel module

This commit is contained in:
NGPixel
2017-10-07 22:44:35 -04:00
parent 2be7f71be8
commit c26fae2ede
13 changed files with 264 additions and 560 deletions

View File

@@ -1,17 +1,6 @@
'use strict'
/* global wiki */
const Promise = require('bluebird')
wiki.redis = require('./modules/redis').init()
wiki.queue = require('./modules/queue').init()
module.exports = Promise.join(
wiki.db.onReady,
wiki.configSvc.loadFromDb(),
wiki.queue.clean()
).then(() => {
module.exports = () => {
// ----------------------------------------
// Load global modules
// ----------------------------------------
@@ -194,7 +183,4 @@ module.exports = Promise.join(
})
return true
}).catch(err => {
wiki.logger.error(err)
process.exit(1)
})
}