From ac43d72aee50a8d35c39f60381d4ef2f90db0614 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 02:03:11 +0800 Subject: [PATCH] init --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index e4a5476..0774ed0 100644 --- a/routes/index.js +++ b/routes/index.js @@ -8,7 +8,7 @@ router.post('/server', function(req, res, next) { const updated_at=req.body.repository.updated_at // 输出当前目录(不一定是代码所在的目录)下的文件和文件夹 - exec('updateRisk RiskCloudMock', (err, stdout, stderr) => { + exec('nohup updateRisk RiskCloudMock &', (err, stdout, stderr) => { if(err) { console.log(err) res.json({message:'自动部署服务端失败'})