admin_url edit

This commit is contained in:
qiaofeng1227 2023-05-18 16:25:34 +08:00
parent a95d9efbce
commit 03ad3d7496
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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