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
We have alembic setup with multiple revisions and we create table using 'alembic upgrade head' when we deploy manually in ubuntu VM.
But when you were showing how to deploy using docker, I see we never use alembic command to create tables. But still postgres works as expected. How is that?
The text was updated successfully, but these errors were encountered:
I guess you can replace in the docker-compose.yml file: CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
by CMD alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8000
We have alembic setup with multiple revisions and we create table using 'alembic upgrade head' when we deploy manually in ubuntu VM.
But when you were showing how to deploy using docker, I see we never use alembic command to create tables. But still postgres works as expected. How is that?
The text was updated successfully, but these errors were encountered: