Authored by 毕凯

压测环境适配

... ... @@ -71,9 +71,9 @@ app.set('json replacer', function(key, value) {
});
// 请求限制中间件
if (!app.locals.devEnv) {
app.use(require('./doraemon/middleware/limiter'));
}
// if (!app.locals.devEnv) {
// app.use(require('./doraemon/middleware/limiter'));
// }
// 指定libray目录
global.utils = path.resolve('./utils');
... ...
... ... @@ -74,7 +74,7 @@ module.exports = {
maxFiles: 7
},
console: {
level: 'info',
level: 'error',
colorize: 'all',
prettyPrint: true
}
... ...