apphub bug

This commit is contained in:
zhaojing1987 2023-12-08 10:45:29 +08:00
parent d0af64ca4f
commit 96a1914be5
3 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ user_pwd = j4FYLqfisbv4vkYY
key = 689899a928b91838e98abd6ac50fc6f6f1fab73e44932a6fd5167e4ce63e72e0
[domain]
wildcard_domain =
wildcard_domain = test.websoft9.cn
[cockpit]
port = 9000

View file

@ -7,7 +7,7 @@ class EnvHelper:
def __init__(self, dotenv_path='.env'):
self.dotenv_path = dotenv_path
if not os.path.exists(dotenv_path):
logger.access(f"{dotenv_path} does not exist.")
logger.error(f"{dotenv_path} does not exist.")
raise CustomException()
def get_all_values(self):

View file

@ -474,7 +474,7 @@ class AppManger:
# Install app - Step 4 : create proxy in nginx proxy manager
try:
# check the app is web app
if is_web_app:
if is_web_app is not None :
if proxy_enabled and domain_names:
# Get the forward port form env file
http_port = EnvHelper(env_file_path).get_value("W9_HTTP_PORT")