2023-02-18 19:01:13 +03:00
|
|
|
dev:
|
2023-02-27 17:49:30 +03:00
|
|
|
python3 -m dotenv -f .env_debug run \
|
|
|
|
python3 -m uvicorn main:app --reload
|
2023-02-18 19:01:13 +03:00
|
|
|
|
|
|
|
prod:
|
|
|
|
python3 -m uvicorn main:app
|
|
|
|
|
|
|
|
format:
|
|
|
|
python3 -m autopep8 -r --in-place app/
|
|
|
|
|
|
|
|
check:
|
|
|
|
python3 -m mypy app/
|
|
|
|
python3 -m pylint app/
|
|
|
|
|
|
|
|
docker:
|
2023-03-01 15:05:20 +03:00
|
|
|
python3 -m dotenv -f version_code run \
|
2023-03-03 13:23:46 +03:00
|
|
|
make cmd-docker-build
|
|
|
|
|
|
|
|
docker-build:
|
|
|
|
python3 -m dotenv -f version_code run \
|
|
|
|
make cmd-docker-build
|
2023-02-18 19:01:13 +03:00
|
|
|
|
2023-03-01 18:39:12 +03:00
|
|
|
docker-push:
|
|
|
|
python3 -m dotenv -f version_code run \
|
2023-03-03 13:23:46 +03:00
|
|
|
make cmd-docker-push
|
2023-03-01 18:39:12 +03:00
|
|
|
|
2023-02-18 19:01:13 +03:00
|
|
|
clean:
|
|
|
|
rm -rf app/__pycache__
|
2023-02-27 17:49:30 +03:00
|
|
|
rm -rf app/*/__pycache__
|
2023-02-18 19:01:13 +03:00
|
|
|
rm -rf __pycache__
|
|
|
|
rm -rf .mypy_cache
|
2023-03-03 13:23:46 +03:00
|
|
|
|
|
|
|
cmd-docker-build:
|
2023-03-03 16:16:40 +03:00
|
|
|
docker build \
|
|
|
|
-t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:latest \
|
|
|
|
-t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:$${VERSION} .
|
2023-03-03 13:23:46 +03:00
|
|
|
|
|
|
|
cmd-docker-push:
|
2023-03-03 16:16:40 +03:00
|
|
|
docker push -a ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}
|