Run alembic migrations on startup, fix User model, add POI travel sorting and streaming options

This commit is contained in:
Viktor Barzin 2026-02-08 18:50:13 +00:00
parent 743e018668
commit 54bdcac14a
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 34 additions and 10 deletions

View file

@ -42,4 +42,4 @@ ENV PATH="/app/.venv/bin:$PATH"
COPY . .
EXPOSE 5001
CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "5001"]
CMD ["sh", "-c", "alembic upgrade head && uvicorn api.app:app --host 0.0.0.0 --port 5001"]