DarkCat09
9ead8a457c
- Flask app factory instead of initializing `app` variable - Gunicorn for production server - Makefile: python3 -m - .gitignore: instance dir
16 lines
273 B
Makefile
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
|