...
|
...
|
@@ -14,7 +14,6 @@ const routers = require('./routers'); |
|
|
const collectData = require('./actions/collect_data');
|
|
|
const profile = require('./actions/profile');
|
|
|
const redis = require('../../lib/redis');
|
|
|
const degradeSsrTask = require('../tasks/degrade-ssr-task');
|
|
|
|
|
|
const {
|
|
|
normalMenus,
|
...
|
...
|
@@ -48,8 +47,6 @@ const mastersUrl = [ |
|
|
// 服务器监控数据采集
|
|
|
// collectData.collect();
|
|
|
|
|
|
// SSR自适应降级监控
|
|
|
degradeSsrTask();
|
|
|
|
|
|
app.use(async(ctx, next) => {
|
|
|
ctx.redis = redis.client;
|
...
|
...
|
|