fix: auto-load .env via python-dotenv for dashboard API keys

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Marc Shade
2026-02-24 12:42:15 -05:00
parent 994d1d4c91
commit 966ce83eae
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -a
source "$(dirname "$0")/.env"
set +a
exec python -m world_intel_mcp.dashboard.app
+3
View File
@@ -10,6 +10,9 @@ import logging
from datetime import datetime, timezone
from pathlib import Path
from dotenv import load_dotenv
load_dotenv(Path(__file__).resolve().parents[3] / ".env", override=False)
from starlette.applications import Starlette
from starlette.responses import HTMLResponse, JSONResponse, Response, StreamingResponse
from starlette.routing import Route