From 4ee77f39d8ced40fca95658507bb57e3e30e89e8 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 10 Mar 2023 09:25:30 +0800 Subject: [PATCH] Update docker.py --- appmanage/api/utils/docker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appmanage/api/utils/docker.py b/appmanage/api/utils/docker.py index 3abfa539..f1cf06b7 100644 --- a/appmanage/api/utils/docker.py +++ b/appmanage/api/utils/docker.py @@ -16,8 +16,10 @@ def get_process_perc(app_name): process_now = "starting" path = "/data/apps/" + app_name + "/.env" http_port = read_env(path, "APP_HTTP_PORT") + print("curl localhost:" + http_port) output = shell_execute.execute_command_output_all("curl localhost:" + http_port) code = output["code"] + print(output["result"]) if int(code) == 0 and output["result"].find("Failed") != -1: process_now = "running"