From 7872ef786064183c7be72edd1245869ec039f0f8 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Wed, 22 May 2024 15:28:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update/utils/git_util.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/update/utils/git_util.py b/update/utils/git_util.py index 1c8fd62..cb50338 100644 --- a/update/utils/git_util.py +++ b/update/utils/git_util.py @@ -5,6 +5,7 @@ import shutil import hashlib import pymysql from dingxin_toolbox_drf import settings +from env import ENV """ 功能: @@ -24,10 +25,10 @@ class GitUtil: self.cine_sql_path = os.path.join(settings.BASE_DIR, 'dx', 'sql') self.db_name = self.get_db_name(self.short_release) self.db_config = { - 'host': '172.16.3.112', - 'user': 'test', - 'password': 'cine123456', - 'port': '3306', + 'host': settings.CONFIG[ENV]['HOST'], + 'user': settings.CONFIG[ENV]['USER'], + 'password': settings.CONFIG[ENV]['PASSWORD'], + 'port': settings.CONFIG[ENV]['PORT'], 'connect_timeout': 5, }