Improved structure

- Flask app factory instead of initializing `app` variable
- Gunicorn for production server
- Makefile: python3 -m
- .gitignore: instance dir
This commit is contained in:
DarkCat09 2023-02-15 16:00:30 +04:00
parent 058bcd13e5
commit 9ead8a457c
6 changed files with 30 additions and 18 deletions

View file

@ -1,8 +1,8 @@
dev:
FLASK_DEBUG="true" flask run
FLASK_DEBUG="true" python3 -m flask run
prod:
flask run
python3 -m gunicorn -w 4 "app:create_app()"
format:
python3 -m autopep8 -r --in-place flaskapp/