From 547ab9585cbb4a6a26dde9f2ea9123d588a1653e Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 15 Jun 2021 16:52:18 +0800 Subject: [PATCH] 1 --- deploy/deploy_git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/deploy_git.py b/deploy/deploy_git.py index 92c3f6b..68f2021 100644 --- a/deploy/deploy_git.py +++ b/deploy/deploy_git.py @@ -28,7 +28,6 @@ class DeployGit: name=self.name) mydb = MysqlBase(**dbargs) data = mydb.query(sql) - pdb.set_trace() self.infos = list() if data: for line in data: @@ -48,7 +47,8 @@ class DeployGit: url = self.infos[0][4] pre_script = self.infos[0][5] self.tag_name = "{name}{now}".format(name=self.name, now=self.now) - build_cmd = "cd /data/publish/git/{name} && git clone {url} && cd {name} && sh {pre_script} && cd .. && tar tar zcvf {tag_name}.tar.gz {name} ".format( + pdb.set_trace() + build_cmd = "mkdir -p /data/publish/git/{name} && cd /data/publish/git/{name} && git clone {url} && cd {name} && sh {pre_script} && cd .. && tar tar zcvf {tag_name}.tar.gz {name} ".format( name=self.name, url=url, tag_name=self.tag_name, pre_script=pre_script) os.system(build_cmd) self.tag_file = os.path.isfile(