mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
ip
This commit is contained in:
parent
1ccb86813b
commit
6727fb0b69
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -166,7 +166,8 @@ def check_app_url(customer_app_name):
|
|||
myLogger.info_logger("Checking app url...")
|
||||
# 如果app的.env文件中含有HTTP_URL项目,需要如此设置 HTTP_URL=ip:port
|
||||
env_path = "/data/apps/" + customer_app_name + "/.env"
|
||||
if list(read_env(env_path, "APP_URL_REPLACE").values())[0] == "true":
|
||||
env_map = get_map(env_path)
|
||||
if env_map.get("APP_URL_REPLACE") == "true":
|
||||
myLogger.info_logger(customer_app_name + "need to change app url...")
|
||||
app_url = list(read_env(env_path, "APP_URL").values())[0]
|
||||
ip = "localhost"
|
||||
|
|
Loading…
Reference in a new issue