feat: introduce automated agent deployment script and environment configurations for centralized management

This commit is contained in:
2026-06-03 18:32:28 +05:30
parent da1e74751e
commit 39febf9aeb
5 changed files with 478 additions and 2 deletions

View File

@@ -1,4 +1,14 @@
import os
from dotenv import load_dotenv
# Dynamically select configuration file based on APP_ENV
app_env = os.getenv("APP_ENV", "development")
if app_env == "production":
load_dotenv(".env.production")
else:
load_dotenv(".env.development")
# Fallback to load default .env if any variables are not yet defined
load_dotenv()
from fastapi import FastAPI, HTTPException