优化路径

main
RogerWork 9 months ago
parent c1d895e48f
commit 9dee6c74b9
  1. 2
      dingxin_toolbox_drf/settings.py
  2. 6
      update/utils/git_util.py

@ -190,7 +190,7 @@ LOGGING = {
'file': {
'level': 'INFO',
'class': 'logging.handlers.RotatingFileHandler',
'filename': os.path.join(BASE_DIR, "logs/dingxin.log"),
'filename': os.path.join(BASE_DIR, "logs", "dingxin.log"),
'maxBytes': 300 * 1024 * 1024,
'backupCount': 10,
'formatter': 'verbose'

@ -20,8 +20,8 @@ from dingxin_toolbox_drf import settings
class GitUtil:
def __init__(self, short_release):
self.short_release = short_release
self.local_code_path = os.path.join(settings.BASE_DIR, r'dx\code')
self.cine_sql_path = os.path.join(settings.BASE_DIR, r'dx\sql')
self.local_code_path = os.path.join(settings.BASE_DIR, 'dx', 'code')
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',
@ -142,7 +142,7 @@ class GitUtil:
class GitDbUtil:
def __init__(self):
self.local_code_path = os.path.join(settings.BASE_DIR, r'dx\code')
self.local_code_path = os.path.join(settings.BASE_DIR, 'dx', 'code')
# 获取可用的版本,可用状态需要手动维护数据库
@staticmethod

Loading…
Cancel
Save