feat: introduce automated agent deployment script and environment configurations for centralized management
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user