From 26e4271a048e44c0cb7758e8ac9457e14e79d7ca Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 19 May 2023 14:29:06 +0800 Subject: [PATCH] xuwei --- appmanage/Dockerfile | 2 +- appmanage/api/utils/docker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appmanage/Dockerfile b/appmanage/Dockerfile index ef28a3a5..d6cf741e 100644 --- a/appmanage/Dockerfile +++ b/appmanage/Dockerfile @@ -10,7 +10,7 @@ COPY static ./static COPY requirements.txt main.py ./ RUN apt update -# Install supervisord +# Install supervisords RUN apt install -y supervisor COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY config/cmd.sh /cmd.sh diff --git a/appmanage/api/utils/docker.py b/appmanage/api/utils/docker.py index b124995e..9e772840 100644 --- a/appmanage/api/utils/docker.py +++ b/appmanage/api/utils/docker.py @@ -155,7 +155,7 @@ def check_app_url(customer_app_name): myLogger.info_logger("Checking app url...") # 如果app的.env文件中含有HTTP_URL项目,需要如此设置 HTTP_URL=ip:port env_path = "/data/apps/" + customer_app_name + "/.env" - if read_env(env_path, "HTTP_URL").values()[0] == "true": + if list(read_env(env_path, "HTTP_URL").values())[0] == "true": myLogger.info_logger(customer_app_name + "need to change app url...") app_url = list(read_env(env_path, "HTTP_URL").values())[0] ip = "localhost"