From ed869bd7787bdf8238d31bb79b42402ae235d436 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 23 May 2023 15:08:38 +0800 Subject: [PATCH] domain --- appmanage/Dockerfile | 2 +- appmanage/api/service/manage.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/service/manage.py b/appmanage/api/service/manage.py index 327a1e00..68b728be 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -1055,7 +1055,7 @@ def set_domain(domain, app_id): if domain == "": ip_result = shell_execute.execute_command_output_all("cat /data/apps/stackhub/docker/w9appmanage/public_ip") domain = ip_result["result"].rstrip('\n') - cmd = 'echo -e "\nAPP_URL="' + domain + " >> /data/apps/" + customer_name +"/.env" + cmd = "echo -e \"\\nAPP_URL=" + domain + "\" >> /data/apps/" + customer_name +"/.env" shell_execute.execute_command_output_all(cmd) myLogger.info_logger("set_domain success")