gd: fix
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-17 20:59:07 -04:00
parent 6b2d610b20
commit 6e859ad112
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -62,6 +62,8 @@ class NFOGuardConfig:
# Database
self.db_type = os.environ.get("DB_TYPE", "sqlite").lower()
self.db_path = Path(os.environ.get("DB_PATH", "/app/data/media_dates.db"))
print(f"DEBUG: DB_TYPE environment variable: {os.environ.get('DB_TYPE', 'NOT_SET')}")
print(f"DEBUG: Configured db_type: {self.db_type}")
# PostgreSQL database settings
if self.db_type == "postgresql":
@@ -70,6 +72,9 @@ class NFOGuardConfig:
self.db_name = os.environ.get("DB_NAME", "nfoguard")
self.db_user = os.environ.get("DB_USER", "nfoguard")
self.db_password = os.environ.get("DB_PASSWORD", "")
print(f"DEBUG: PostgreSQL config - host={self.db_host}, port={self.db_port}, db={self.db_name}, user={self.db_user}")
else:
print(f"DEBUG: Using SQLite config - path={self.db_path}")
# External connections
self._load_external_connections()