Authored by 李奇

迁移docker日志和监控路由添加

@@ -64,13 +64,13 @@ module.exports = { @@ -64,13 +64,13 @@ module.exports = {
64 infoFile: { 64 infoFile: {
65 name: 'info', 65 name: 'info',
66 level: 'info', 66 level: 'info',
67 - filename: 'logs/info.log', 67 + filename: '/Data/logs/yohoblk-wap/info.log',
68 maxFiles: 7 68 maxFiles: 7
69 }, 69 },
70 errorFile: { 70 errorFile: {
71 name: 'error', 71 name: 'error',
72 level: 'error', 72 level: 'error',
73 - filename: 'logs/error.log', 73 + filename: '/Data/logs/yohoblk-wap/error.log',
74 handleExceptions: true, 74 handleExceptions: true,
75 maxFiles: 7 75 maxFiles: 7
76 }, 76 },
@@ -80,6 +80,7 @@ module.exports = { @@ -80,6 +80,7 @@ module.exports = {
80 port: '4444' // influxdb port 80 port: '4444' // influxdb port
81 }, 81 },
82 console: { 82 console: {
  83 + close: true,
83 level: 'debug', 84 level: 'debug',
84 colorize: 'all', 85 colorize: 'all',
85 prettyPrint: true 86 prettyPrint: true
@@ -115,6 +115,10 @@ exports.createApp = async (app) => { @@ -115,6 +115,10 @@ exports.createApp = async (app) => {
115 await require('./doraemon/middleware/ssr')(app); 115 await require('./doraemon/middleware/ssr')(app);
116 require('./dispatch')(app); 116 require('./dispatch')(app);
117 117
  118 + app.use('/crm/common/ok.jsp', (req, res) => {
  119 + res.status(204).end();
  120 + });
  121 +
118 app.all('*', errorHanlder.notFound()); // 404 122 app.all('*', errorHanlder.notFound()); // 404
119 123
120 // YOHO 后置中间件 124 // YOHO 后置中间件