From 7133ba6e0a7ca5f033fa6cce90ed8bd11d15b18f Mon Sep 17 00:00:00 2001 From: Akrem Abayed Date: Tue, 5 Dec 2023 15:47:00 +0100 Subject: [PATCH] fix for oss when hosted --- agenta-backend/agenta_backend/services/app_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-backend/agenta_backend/services/app_manager.py b/agenta-backend/agenta_backend/services/app_manager.py index 2a27a2abb1..d20ac81c8d 100644 --- a/agenta-backend/agenta_backend/services/app_manager.py +++ b/agenta-backend/agenta_backend/services/app_manager.py @@ -71,7 +71,7 @@ async def start_variant( logger.debug("App name is %s", db_app_variant.app.app_name) # update the env variables domain_name = os.environ.get("DOMAIN_NAME") - if domain_name is None or domain_name == "http://localhost": + if os.environ["FEATURE_FLAG"] in ["oss"]: # in the case of agenta running locally, the containers can access the host machine via this address domain_name = ( "http://host.docker.internal" # unclear why this stopped working