Add auto alembic upgrade in container
All checks were successful
Build Container / build (push) Successful in 3m51s
All checks were successful
Build Container / build (push) Successful in 3m51s
This commit is contained in:
@@ -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.
|
||||
@@ -2,3 +2,4 @@ requests
|
||||
uvicorn
|
||||
fastapi
|
||||
sqlalchemy
|
||||
alembic
|
||||
|
||||
@@ -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 ..
|
||||
|
||||
|
||||
Reference in New Issue
Block a user