From 414f65bdc08a5fc999951cf8fd6e7ffb943a22e0 Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 21 Jun 2021 15:15:58 +0800 Subject: [PATCH] fix issue --- spug_api/apps/deploy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/apps/deploy/utils.py b/spug_api/apps/deploy/utils.py index 87cb464..d72a182 100644 --- a/spug_api/apps/deploy/utils.py +++ b/spug_api/apps/deploy/utils.py @@ -118,7 +118,7 @@ def _ext2_deploy(req, helper, env): excludes.append(f'--exclude={x}') exclude = ' '.join(excludes) tar_gz_file = f'{req.spug_version}.tar.gz' - helper.local(f'tar -C {sp_dir} -zcf {tar_gz_file} {exclude} {contain}') + helper.local(f'cd {sp_dir} && tar -zcf {tar_gz_file} {exclude} {contain}') helper.send_info('local', f'{human_time()} 打包完成\r\n') tmp_transfer_file = os.path.join(sp_dir, tar_gz_file) break