|
|
@ -5,6 +5,7 @@ import shutil |
|
|
|
import hashlib |
|
|
|
import hashlib |
|
|
|
import pymysql |
|
|
|
import pymysql |
|
|
|
from dingxin_toolbox_drf import settings |
|
|
|
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.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': settings.CONFIG[ENV]['HOST'], |
|
|
|
'user': 'test', |
|
|
|
'user': settings.CONFIG[ENV]['USER'], |
|
|
|
'password': 'cine123456', |
|
|
|
'password': settings.CONFIG[ENV]['PASSWORD'], |
|
|
|
'port': '3306', |
|
|
|
'port': settings.CONFIG[ENV]['PORT'], |
|
|
|
'connect_timeout': 5, |
|
|
|
'connect_timeout': 5, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|