|
|
@ -1,10 +1,13 @@
|
|
|
|
# Run
|
|
|
|
# Run
|
|
|
|
|
|
|
|
|
|
|
|
## in Development
|
|
|
|
## in Development
|
|
|
|
|
|
|
|
**only using flask; no Unicorn**
|
|
|
|
|
|
|
|
|
|
|
|
`export FLASK_APP=run.py`
|
|
|
|
`export FLASK_APP=run.py`
|
|
|
|
`export FLASK_ENV=development`
|
|
|
|
`export FLASK_ENV=development`
|
|
|
|
`flask run`
|
|
|
|
`flask run`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Using gunicorn:**
|
|
|
|
**Using gunicorn:**
|
|
|
|
|
|
|
|
|
|
|
|
`gunicorn --env SCRIPT_NAME=/watermark -w 4 -b 127.0.0.1:5000 app:app --log-level debug`
|
|
|
|
`gunicorn --env SCRIPT_NAME=/watermark -w 4 -b 127.0.0.1:5000 app:app --log-level debug`
|
|
|
@ -88,3 +91,5 @@ But in the long run logging should be disabled
|
|
|
|
*
|
|
|
|
*
|
|
|
|
gunicorn -w 4 -b :5000 app:app
|
|
|
|
gunicorn -w 4 -b :5000 app:app
|
|
|
|
gunicorn -w 4 -b :5000 app:app
|
|
|
|
gunicorn -w 4 -b :5000 app:app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|