diff --git a/lib/commands/deploy.js b/lib/commands/deploy.js index 9dce593..10ff716 100644 --- a/lib/commands/deploy.js +++ b/lib/commands/deploy.js @@ -182,7 +182,7 @@ const backupRemoteFile = async (config, index) => { await ssh.execCommand(`[ ! -d ${bakDir} ] && mkdir ${bakDir}`) - await ssh.execCommand(`zip -q -r ${bakDir}/${zipFileName} ${webDir}`) + await ssh.execCommand(`zip -q -r ${bakDir}/${zipFileName} ./*`, { cwd: webDir }) succeed(`备份成功 备份至 ${underline(`${bakDir}/${zipFileName}`)}`) } catch (e) {