diff --git a/src/rest/autodeploy/download.js b/src/rest/autodeploy/download.js index 752c371..b3e35e5 100644 --- a/src/rest/autodeploy/download.js +++ b/src/rest/autodeploy/download.js @@ -14,7 +14,7 @@ module.exports = { fse.pathExists(path, (err, exists) => { console.log(`${path}=========>${exists}`) if (exists) { - execute(`cd ../zips`).then(() => execute(`zip -r ${info.id}.zip ${path}`)).then(() => { + execute(`ll`).then(() => execute(`cd /root/node-service/zips&&zip -r ${info.id}.zip ${path}`)).then(() => { console.log('压缩完成!') setTimeout(() => { response.download(zipPath)