Authored by TaoHuang

feat(app):add health check

Showing 1 changed file with 5 additions and 0 deletions
... ... @@ -32,6 +32,11 @@ app.keys = ['yoho-node-ci secret'];
app.use(compress())
// docker验证项目是否正常发布
app.use('/node/status.html', (req, res) => {
return res.status(204).end();
});
app.use(errorHandle(app));
app.use(serve(__dirname + '/public'));
app.use(convert(session({}, app)));
... ...