fix(crawler): update env and database config

Updated crawler configuration and database connection handling. Added .gitignore to exclude pycache and .env file.
This commit is contained in:
2026-02-09 16:26:52 -05:00
parent bc8700bd60
commit 6daa706e5a
3 changed files with 5 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# --- Database Configuration ---
DATABASE_URL = "postgresql://postgres:password@192.168.1.204:5432/fuelprices"
DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://postgres:password@192.168.1.204:5432/fuelprices")
# Ensure this DATABASE_URL is correct for your setup (e.g., 'db' for Docker Compose,
# 'host.docker.internal' or an IP for external DBs)
# For your error, it seems you are trying to connect to 192.164.1.204