调整服务器参数

main
RogerWork 6 months ago
parent 7d65c7fef4
commit 7872ef7860
  1. 9
      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,
}

Loading…
Cancel
Save