19 lines
438 B
JavaScript
19 lines
438 B
JavaScript
const path = require('path')
|
|
|
|
let WIKI = {
|
|
IS_DEBUG: process.env.NODE_ENV === 'development',
|
|
ROOTPATH: process.cwd(),
|
|
SERVERPATH: path.join(process.cwd(), 'server'),
|
|
Error: require('../helpers/error'),
|
|
configSvc: require('./config')
|
|
}
|
|
global.WIKI = WIKI
|
|
|
|
WIKI.configSvc.init()
|
|
|
|
// ----------------------------------------
|
|
// Init Logger
|
|
// ----------------------------------------
|
|
|
|
WIKI.logger = require('./logger').init('JOB')
|