Authored by 郭成尧

yohoLib

Showing 1 changed file with 3 additions and 3 deletions
... ... @@ -15,6 +15,9 @@ global.Promise = require('bluebird');
const yohoLib = require('yoho-node-lib');
// 全局注册library
yohoLib.global(config);
const express = require('express');
const path = require('path');
const compression = require('compression');
... ... @@ -37,9 +40,6 @@ app.locals.version = pkg.version;
app.locals.startTime = moment().format('YYYYMMDDHH');
app.locals.currentYear = moment().format('YYYY');
// 全局注册library
yohoLib.global(config);
const logger = global.yoho.logger;
// zookeeper
... ...