20 lines
360 B
Makefile
20 lines
360 B
Makefile
dev:
|
|
FLASK_DEBUG="true" python3 -m flask run
|
|
|
|
prod:
|
|
python3 -m gunicorn -w 4 "app:create_app()"
|
|
|
|
format:
|
|
python3 -m autopep8 -r --in-place flaskapp/
|
|
|
|
check:
|
|
python3 -m mypy flaskapp/
|
|
python3 -m pylint flaskapp/
|
|
|
|
docker:
|
|
docker build -t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE} .
|
|
|
|
clean:
|
|
rm -rf flaskapp/__pycache__
|
|
rm -rf __pycache__
|
|
rm -rf .mypy_cache
|