From 03ad3d7496cdde4a8ea523e074ed63cd842d20af Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 18 May 2023 16:25:34 +0800 Subject: [PATCH] admin_url edit --- appmanage/Dockerfile | 2 +- appmanage/api/service/manage.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/appmanage/Dockerfile b/appmanage/Dockerfile index d6cf741e..ef28a3a5 100644 --- a/appmanage/Dockerfile +++ b/appmanage/Dockerfile @@ -10,7 +10,7 @@ COPY static ./static COPY requirements.txt main.py ./ RUN apt update -# Install supervisords +# Install supervisord 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 bf04e7ae..ce365cad 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -546,6 +546,7 @@ def get_admin_url(customer_name, url): path = "/data/apps/" + customer_name + "/.env" try: admin_path = list(docker.read_env(path, "APP_ADMIN_PATH").values())[0] + admin_path = admin_path.replace("\"","") admin_url = url + admin_path except IndexError: pass