added pid

This commit is contained in:
maximstewart 2020-12-16 15:50:29 -06:00
parent e8db4d2862
commit d4fbe2d27d
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ function main() {
# Note can replace 127.0.0.1 with 0.0.0.0 to make it 'network/internet' accessable...
# Note: NEED -k eventlet for this to work! I spent too many hours on this...
# <module>:<app> IE <file>:<flask app variable>
gunicorn wsgi:app
gunicorn wsgi:app -p app.pid \
-b $ADDR:$PORT \
-k eventlet \
-w $WORKER_COUNT \

View File

@ -10,6 +10,6 @@ function main() {
cd "${SCRIPTPATH}"
echo "Working Dir: " $(pwd)
source "../venv/bin/activate"
gunicorn --bind unix:/tmp/app.sock wsgi:app
gunicorn --bind unix:/tmp/app.sock wsgi:app -p app.pid
}
main $@;