master
pan 4 years ago
parent 409b67ecd8
commit 452634a5ba
  1. 5
      routes/index.js
  2. 4
      views/deploy.pug

@ -91,7 +91,10 @@ router.post('/deploy', function(req, res, next) {
//部署完毕事件
router.get('/finsh', function(req, res, next) {
dingding(`${req.query.name}|${startDeploy[req.query.name].description}自动部署成功,花费时间:${moment().diff(startDeploy[req.query.name].startTime,'seconds',true)}`)
if(req.query.name in startDeploy) {
let deployInfo=startDeploy[req.query.name]
dingding(`${req.query.name}|${deployInfo.description}自动部署成功,花费时间:${moment().diff(deployInfo.startTime, 'seconds', true)}`)
}
res.json({message:`仓库代码${req.query.name}部署成功`})
});

@ -0,0 +1,4 @@
extends layout
block content
h1= message
Loading…
Cancel
Save