|
|
|
|
@ -24,7 +24,7 @@ class ClientUtilCustom: |
|
|
|
|
self.local_path = os.path.join(BASE_DIR, 'dx', 'client') |
|
|
|
|
self.deploy_db_config = {'host': '10.10.0.80', 'port': 3306, 'user': 'cine_readonly', |
|
|
|
|
'password': 'IyzCtV11', 'database': 'yhz_tool'} |
|
|
|
|
self.client_mirror = {'url': 'http://10.10.0.38:8989/upload/'} |
|
|
|
|
self.client_mirror = {'url': 'http://10.10.0.38:8989/upload/', 'host':'10.10.0.38'} |
|
|
|
|
self.deploy_id = 0 |
|
|
|
|
self.client_data = [] |
|
|
|
|
self.client_file_list = [] |
|
|
|
|
@ -149,8 +149,7 @@ class ClientUtilCustom: |
|
|
|
|
# 关闭本地文件 |
|
|
|
|
local_file.close() |
|
|
|
|
target_file = os.path.join('/home/client/', file['name']) |
|
|
|
|
self.upload(self.client_mirror['host'], file_path, target_file, self.client_mirror['username'], |
|
|
|
|
self.client_mirror['password']) |
|
|
|
|
self.upload(self.client_mirror['host'], file_path, target_file) |
|
|
|
|
print(f'完成客户端同步: {target_file}') |
|
|
|
|
|
|
|
|
|
print(self.client_data) |
|
|
|
|
|