You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
e375844ee9 | 5 years ago | |
---|---|---|
app | 5 years ago | |
.gitignore | 5 years ago | |
README.md | 5 years ago | |
config.py | 5 years ago | |
file.db | 5 years ago | |
gunicorn_run.sh | 5 years ago | |
requirements.txt | 5 years ago | |
run.py | 5 years ago | |
wsgi.py | 5 years ago |
README.md
Run
in Development
export FLASK_APP=run.py
export FLASK_ENV=development
flask run
in production
gunicorn -w 4 -b 127.0.0.1:5000 app:app
-w
workers-b
bind to address / unix socker
or using unix sock:
gunicorn --workers 4 --bind unix:app.sock -m 007 wsgi:app