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:
parent
058bcd13e5
commit
9ead8a457c
6 changed files with 30 additions and 18 deletions
4
Makefile
4
Makefile
|
@ -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/
|
||||
|
|
Loading…
Add table
Reference in a new issue