|
|
@ -20,8 +20,8 @@ from dingxin_toolbox_drf import settings |
|
|
|
class GitUtil: |
|
|
|
class GitUtil: |
|
|
|
def __init__(self, short_release): |
|
|
|
def __init__(self, short_release): |
|
|
|
self.short_release = short_release |
|
|
|
self.short_release = short_release |
|
|
|
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') |
|
|
|
self.cine_sql_path = os.path.join(settings.BASE_DIR, r'dx\sql') |
|
|
|
self.cine_sql_path = os.path.join(settings.BASE_DIR, 'dx', 'sql') |
|
|
|
self.db_name = self.get_db_name(self.short_release) |
|
|
|
self.db_name = self.get_db_name(self.short_release) |
|
|
|
self.db_config = { |
|
|
|
self.db_config = { |
|
|
|
'host': '172.16.3.112', |
|
|
|
'host': '172.16.3.112', |
|
|
@ -142,7 +142,7 @@ class GitUtil: |
|
|
|
|
|
|
|
|
|
|
|
class GitDbUtil: |
|
|
|
class GitDbUtil: |
|
|
|
def __init__(self): |
|
|
|
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 |
|
|
|
@staticmethod |
|
|
|