...
|
...
|
@@ -21,6 +21,7 @@ const session = require('yoho-express-session'); |
|
|
const memcached = require('yoho-connect-memcached');
|
|
|
const uuid = require('uuid');
|
|
|
const _ = require('lodash');
|
|
|
const yohoLib = require('yoho-node-lib');
|
|
|
const pkg = require('./package.json');
|
|
|
|
|
|
const app = express();
|
...
|
...
|
@@ -31,8 +32,8 @@ const MemcachedStore = memcached(session); |
|
|
app.locals.devEnv = app.get('env') === 'development';
|
|
|
app.locals.version = pkg.version;
|
|
|
|
|
|
// 指定libray目录
|
|
|
global.library = path.resolve('./library/');
|
|
|
// 全局注册library
|
|
|
yohoLib.global(config);
|
|
|
|
|
|
app.set('view engine', '.hbs');
|
|
|
|
...
|
...
|
|