From d6712f96c3dd0c94d020f9f2dbad9a18b65f52b2 Mon Sep 17 00:00:00 2001 From: aiaug Date: Mon, 13 Jan 2025 14:19:45 +0900 Subject: [PATCH] fix:this commit should fix the setting for dev env --- eve/tools/replicate_tool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eve/tools/replicate_tool.py b/eve/tools/replicate_tool.py index ec327d0..73d82f2 100644 --- a/eve/tools/replicate_tool.py +++ b/eve/tools/replicate_tool.py @@ -168,7 +168,8 @@ def get_webhook_url(): "WEB3-PROD": "api-web3-prod", "WEB3-STAGE": "api-web3-stage" }.get(os.getenv("DB"), "api-web3-stage") - dev = "-dev" if os.getenv("DB") == "WEB3-STAGE" and os.getenv("MODAL_SERVE") == "1" else "" + dev = "-dev" if os.getenv("DB") in ["WEB3-STAGE", "STAGE"] and os.getenv("MODAL_SERVE") == "1" else "" + webhook_url = f"https://edenartlab--{env}-fastapi-app{dev}.modal.run/update" return webhook_url