From 301ac1de67913fbbd155754335d031fae2dab5a2 Mon Sep 17 00:00:00 2001 From: vapao Date: Thu, 21 Jul 2022 15:43:50 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E5=B8=B8=E8=A7=84?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=9E=84=E5=BB=BA=E7=9B=AE=E5=BD=95=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/deploy/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spug_api/apps/deploy/utils.py b/spug_api/apps/deploy/utils.py index da48967..a8ac9b9 100644 --- a/spug_api/apps/deploy/utils.py +++ b/spug_api/apps/deploy/utils.py @@ -18,6 +18,7 @@ import uuid import os REPOS_DIR = settings.REPOS_DIR +BUILD_DIR = settings.BUILD_DIR def dispatch(req, fail_mode=False): @@ -247,7 +248,7 @@ def _deploy_ext1_host(req, helper, h_id, env): try: callback = helper.progress_callback(host.id) ssh.put_file( - os.path.join(REPOS_DIR, 'build', tar_gz_file), + os.path.join(BUILD_DIR, tar_gz_file), os.path.join(extend.dst_repo, tar_gz_file), callback )