Add auto alembic upgrade in container
All checks were successful
Build Container / build (push) Successful in 3m51s

This commit is contained in:
Sami Abuzakuk
2025-10-14 20:26:51 +02:00
parent 90cb14eb2a
commit 5ba5107a3b
6 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ from sqlalchemy import engine_from_config
from sqlalchemy import pool
from alembic import context
from backend.model import Base
from model import Base
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.

View File

@@ -2,3 +2,4 @@ requests
uvicorn
fastapi
sqlalchemy
alembic

View File

@@ -19,6 +19,7 @@ cd ../..
# Start the backend using uvicorn
cd backend
alembic upgrade head
uvicorn backend:app --host 0.0.0.0 --port 8000 &
cd ..