admin_url

This commit is contained in:
qiaofeng1227 2023-05-20 17:02:18 +08:00
parent 9c689c69ab
commit 4eed8b47dd
2 changed files with 7 additions and 3 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

@ -369,8 +369,12 @@ def get_apps_from_compose():
user_name = env_map.get("APP_USER","")
password = env_map.get("POWER_PASSWORD","")
admin_path = env_map.get("APP_ADMIN_PATH")
myLogger.info_logger(admin_path)
if default_domain != "" and admin_path:
if admin_path:
myLogger.info_logger(admin_path)
else:
admin_path =""
if default_domain != "" and admin_path != "":
admin_domain_url = default_domain + admin_path
except IndexError:
pass