- Python 3.9
- Poetry
Install
pre-commit install
pre-commit install -t pre-pushRun locally
pre-commit run --all-filesUsing alembic
alembic init migrationsCreate script
alembic revision -m "SCRIPT DESCRIPTION"Run tests using pytest
pytest tests/docker build -t python-rest-api-example:0.1 .
docker run -p 5000:5000 --env-file .env python-rest-api-example:0.1heroku container:push web -a <HEROKU-APP-NAME>
heroku container:release web -a <HEROKU-APP-NAME>