修复打包路径

This commit is contained in:
aixianling
2022-12-28 16:30:11 +08:00
parent ce8a594870
commit 3639b88417

View File

@@ -14,7 +14,7 @@ module.exports = {
console.log(`${path}=========>${exists}`) console.log(`${path}=========>${exists}`)
if (exists) { if (exists) {
execute(`cd ${path}&&zip -r ${info.id}.zip .`) execute(`cd ${path}&&zip -r ${info.id}.zip .`)
.then(() => execute(`cd ${path}&&mv ${info.id}.zip ~/../zips/`)) .then(() => execute(`cd ${path}&&mv ${info.id}.zip /home/deploy/node_deploy/zips/`))
.then(() => { .then(() => {
console.log('压缩完成!') console.log('压缩完成!')
setTimeout(() => { setTimeout(() => {