Authored by 陈峰

Merge branch 'feature/ssr' into 'master'

commit



See merge request !43
... ... @@ -50,6 +50,8 @@ app.use(convert(body({
})));
app.use(mount('/', webApp));
// SSR自适应降级监控
require('./apps/tasks/degrade-ssr-task')();
server.listen(port, () => {
console.log(`app started in ${port}`);
... ...
... ... @@ -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;
... ...