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 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...
|
# Note: NEED -k eventlet for this to work! I spent too many hours on this...
|
||||||
# <module>:<app> IE <file>:<flask app variable>
|
# <module>:<app> IE <file>:<flask app variable>
|
||||||
gunicorn wsgi:app
|
gunicorn wsgi:app -p app.pid \
|
||||||
-b $ADDR:$PORT \
|
-b $ADDR:$PORT \
|
||||||
-k eventlet \
|
-k eventlet \
|
||||||
-w $WORKER_COUNT \
|
-w $WORKER_COUNT \
|
||||||
|
|
|
@ -10,6 +10,6 @@ function main() {
|
||||||
cd "${SCRIPTPATH}"
|
cd "${SCRIPTPATH}"
|
||||||
echo "Working Dir: " $(pwd)
|
echo "Working Dir: " $(pwd)
|
||||||
source "../venv/bin/activate"
|
source "../venv/bin/activate"
|
||||||
gunicorn --bind unix:/tmp/app.sock wsgi:app
|
gunicorn --bind unix:/tmp/app.sock wsgi:app -p app.pid
|
||||||
}
|
}
|
||||||
main $@;
|
main $@;
|
||||||
|
|
Loading…
Reference in New Issue