added pid
This commit is contained in:
parent
e8db4d2862
commit
d4fbe2d27d
@ -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 \
|
||||
|
@ -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 $@;
|
||||
|
Loading…
Reference in New Issue
Block a user