mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 09:48:38 +08:00
xuwei
This commit is contained in:
parent
26e4271a04
commit
ac13f06229
@ -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
|
||||
|
@ -155,9 +155,9 @@ 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, "HTTP_URL").values())[0] == "true":
|
||||
if list(read_env(env_path, "APP_URL_REPLACE").values())[0] == "true":
|
||||
myLogger.info_logger(customer_app_name + "need to change app url...")
|
||||
app_url = list(read_env(env_path, "HTTP_URL").values())[0]
|
||||
app_url = list(read_env(env_path, "APP_URL").values())[0]
|
||||
ip = "localhost"
|
||||
url = ""
|
||||
try:
|
||||
@ -171,7 +171,7 @@ def check_app_url(customer_app_name):
|
||||
url = ip + ":" + http_port
|
||||
else:
|
||||
url = ip
|
||||
modify_env(env_path, "HTTP_URL", url)
|
||||
modify_env(env_path, "APP_URL", url)
|
||||
|
||||
myLogger.info_logger("App url check complete")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user