$ make build
$ make shell
$ uvicorn app.main:app --host 0.0.0.0 --port 80 --reload
Use isort . && black .
command for code formatting.
on dev:
make build_prod
docker save conv_prod | ssh -C [email protected] docker load
on prod:
docker create --name conv_prod -p 8080:80 -it conv_prod
- Stop running container with
docker stop conv_prod && docker rm conv_prod
. Then start a new one withdocker start conv_prod
- Check runing image with
docker ps -a
and logs withdocker logs conv_prod