2023-02-14 19:53:57 +04:00
|
|
|
dev:
|
2023-02-15 16:00:30 +04:00
|
|
|
FLASK_DEBUG="true" python3 -m flask run
|
2023-02-14 19:53:57 +04:00
|
|
|
|
|
|
|
prod:
|
2023-02-15 16:00:30 +04:00
|
|
|
python3 -m gunicorn -w 4 "app:create_app()"
|
2023-02-14 19:53:57 +04:00
|
|
|
|
|
|
|
format:
|
|
|
|
python3 -m autopep8 -r --in-place flaskapp/
|
|
|
|
|
|
|
|
check:
|
|
|
|
python3 -m mypy flaskapp/
|
|
|
|
python3 -m pylint flaskapp/
|
|
|
|
|
2023-02-17 15:55:52 +04:00
|
|
|
docker:
|
2023-02-17 16:12:04 +04:00
|
|
|
docker build -t ${REPO_OWNER}/${REPO_NAME_SNAKE} .
|
2023-02-17 15:55:52 +04:00
|
|
|
|
2023-02-14 19:53:57 +04:00
|
|
|
clean:
|
|
|
|
rm -rf flaskapp/__pycache__
|
2023-02-15 19:56:28 +04:00
|
|
|
rm -rf __pycache__
|
2023-02-14 19:53:57 +04:00
|
|
|
rm -rf .mypy_cache
|