Skip to content

Commit

Permalink
fix:this commit should fix the setting for dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaug committed Jan 13, 2025
1 parent 634d3f1 commit d6712f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eve/tools/replicate_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d6712f9

Please sign in to comment.