- FastAPI with Postgres setup
- Docker container with docker-compose
- JWT User Authentication
- Modular Project Structure
- Heroku Deploy with Githu Actions
- Manage Migrations with Alembic script
-
Change
entrypoint.sh
file from#!/bin/bash alembic upgrade head uvicorn app.server:app --reload --host 0.0.0.0 --port $PORT
To
#!/bin/bash alembic upgrade head uvicorn app.server:app --reload --host 0.0.0.0 --port 5000
-
$ sh mig.sh
Examplesh mig.sh Enter the Migration File name : cluster groups org
The resulting file name will be
21ce965c935e_cluster_groups_org.py
-
Commit the migration files.
- Change back --port 5000 to --port $PORT in
entrypoint.sh