From 69da53ceaf746f8f66829f2aca21fdc5a2a20387 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 02:26:37 +0800 Subject: [PATCH] init --- routes/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/index.js b/routes/index.js index 3077c5d..d6284fe 100644 --- a/routes/index.js +++ b/routes/index.js @@ -13,16 +13,17 @@ router.post('/server', function(req, res, next) { console.log(chunk.toString()); }); spawnObj.stderr.on('data', (data) => { - console.log(data); + console.error(data); }); spawnObj.on('close', function(code) { console.log('close code : ' + code); }) spawnObj.on('exit', (code) => { console.log('exit code : ' + code); - res.json({message: `仓库代码${req.query.name}部署成功`}) + console.info(`仓库代码${req.query.name}部署成功`) }) + res.json({message:`仓库代码${req.query.name}部署中`}) }); //部署完毕事件