You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: run migrations on startup and respect LEXECON_DATA_DIR for all DB paths
- Add start.sh: runs migrations/run_all.py then exec uvicorn (no server
starts without migrations completing first; exits non-zero on failure)
- Dockerfile: copy start.sh, use it as CMD, extend healthcheck start-period
to 60s to allow migration time, fix /app chown for non-root user
- railway.toml: update startCommand to /bin/sh /app/start.sh
- dependencies.py: replace all hardcoded DB filenames with paths resolved
under LEXECON_DATA_DIR (defaults to "." for local dev). Covers:
lexecon_ledger.db, lexecon_auth.db, lexecon_responsibility.db,
lexecon_export_audit.db, lexecon_keys/, lexecon_interventions.db,
lexecon_usage.db, lexecon_auth.db (TenancyService)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments