From d6053569a35e7207e636acc61d3ce98f84a271be Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 23 May 2023 10:47:48 +0800 Subject: [PATCH] url --- appmanage/Dockerfile | 2 +- appmanage/api/service/manage.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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/service/manage.py b/appmanage/api/service/manage.py index 946bc827..66fe23af 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -355,7 +355,9 @@ def get_apps_from_compose(): # get env info path = app_path + "/.env" env_map = docker.get_map(path) + try: + myLogger.info_logger("get domain for APP_URL") domain = env_map.get("APP_URL") if "appname.example.com" in domain or ip in domain: default_domain = ""