|
@@ -171,7 +171,7 @@ def main():
|
|
|
# 3.2. scp 模型文件到服务器
|
|
|
ecs_model_path = '/data/offline_dir'
|
|
|
scp_command = f"scp {local_path}/{model_file} {ip_address}:{ecs_model_path}"
|
|
|
- #os.system(command=scp_command)
|
|
|
+ os.system(command=scp_command)
|
|
|
# 3.3 服务重启
|
|
|
server_restart(slb_client=slb_client, instance_id=instance_id,
|
|
|
ip_address=ip_address, ins_name=docker_ins_name, dt=dt)
|