Commit 6ab7dc57 authored by 金凯强's avatar 金凯强 🎨

直接测试

parent f8f33d5d
...@@ -74,6 +74,6 @@ if __name__ == '__main__': ...@@ -74,6 +74,6 @@ if __name__ == '__main__':
# res = requests.get('http://localhost:5000/upgrade/rollback/1238022723059486720/') # res = requests.get('http://localhost:5000/upgrade/rollback/1238022723059486720/')
# print(json.dumps(res.json(), indent=4)) # print(json.dumps(res.json(), indent=4))
# # 远程升级 # 远程升级
# res = requests.get('http://localhost:5000/upgrade/remote/') res = requests.get('http://localhost:5000/upgrade/remote/')
# print(json.dumps(res.json(), indent=4)) print(json.dumps(res.json(), indent=4))
...@@ -136,7 +136,7 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym ...@@ -136,7 +136,7 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym
ssh.upload(os.path.join(system_file_dir, 'load.sh'), '/huansi/upgrade/load.sh') ssh.upload(os.path.join(system_file_dir, 'load.sh'), '/huansi/upgrade/load.sh')
ssh.upload(os.path.join(system_file_dir, 'load_handle.py'), '/huansi/upgrade/load_handle.py') ssh.upload(os.path.join(system_file_dir, 'load_handle.py'), '/huansi/upgrade/load_handle.py')
out, err = ssh.exec_command("echo 'sh /huansi/upgrade/load.sh'") out, err = ssh.exec_command("sh /huansi/upgrade/load.sh")
logger.info(f'远程升级信息:{out}') logger.info(f'远程升级信息:{out}')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment