tmpl-flask/Makefile
DarkCat09 9ead8a457c Improved structure
- Flask app factory instead of initializing `app` variable
- Gunicorn for production server
- Makefile: python3 -m
- .gitignore: instance dir
2023-02-15 16:00:30 +04:00

16 lines
273 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/
clean:
rm -rf flaskapp/__pycache__
rm -rf .mypy_cache