-
Aryan Noshirvnai authored
database.py read os.getenv("DATABASE_URL") at import time, relying on config.py's load_dotenv() having already run first. Anything that imports database.py directly - alembic/env.py, the standalone Telegram bot's init_db() - never loads .env at all and silently falls back to the sqlite:///./stax.db default, no matter what .env actually says. Found while deploying to a fresh prod server: alembic kept migrating a stale leftover database instead of the one set up for it. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
c9fbde98
| Name |
Last commit
|
Last update |
|---|---|---|
| alembic | ||
| deploy | ||
| scripts | ||
| src | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| Dockerfile | ||
| README.md | ||
| alembic.ini | ||
| docker-compose.yml | ||
| requirements-remix.txt | ||
| requirements.txt | ||
| setup.sh |