From 96a1914be565f8a6e1a454a4bbcca34dfab44739 Mon Sep 17 00:00:00 2001 From: zhaojing1987 Date: Fri, 8 Dec 2023 10:45:29 +0800 Subject: [PATCH] apphub bug --- apphub/src/config/config.ini | 2 +- apphub/src/core/envHelper.py | 2 +- apphub/src/services/app_manager.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apphub/src/config/config.ini b/apphub/src/config/config.ini index 7b3cd003..e085f475 100755 --- a/apphub/src/config/config.ini +++ b/apphub/src/config/config.ini @@ -19,7 +19,7 @@ user_pwd = j4FYLqfisbv4vkYY key = 689899a928b91838e98abd6ac50fc6f6f1fab73e44932a6fd5167e4ce63e72e0 [domain] -wildcard_domain = +wildcard_domain = test.websoft9.cn [cockpit] port = 9000 diff --git a/apphub/src/core/envHelper.py b/apphub/src/core/envHelper.py index af10f9f3..1338a5cc 100644 --- a/apphub/src/core/envHelper.py +++ b/apphub/src/core/envHelper.py @@ -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): diff --git a/apphub/src/services/app_manager.py b/apphub/src/services/app_manager.py index b9c80550..732a7cd2 100755 --- a/apphub/src/services/app_manager.py +++ b/apphub/src/services/app_manager.py @@ -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")