We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61e8ad3 commit d2e7916Copy full SHA for d2e7916
1 file changed
src/api_server.py
@@ -22,7 +22,10 @@
22
23
# Database connection
24
DATABASE_URL = os.getenv("DATABASE_URL")
25
+print(f"[DEBUG] DATABASE_URL loaded: {DATABASE_URL[:50] if DATABASE_URL else 'NOT SET'}...")
26
if not DATABASE_URL:
27
+ print("[ERROR] DATABASE_URL environment variable is not set!")
28
+ print(f"[DEBUG] Available env vars: {', '.join([k for k in os.environ.keys() if 'DATA' in k or 'DB' in k or 'POSTGRES' in k])}")
29
raise ValueError(
30
"DATABASE_URL environment variable is not set! "
31
"Please set it in your Render dashboard Environment variables."
0 commit comments