changed linux launch structure
This commit is contained in:
parent
4a3f7b8384
commit
3b452a7907
|
@ -6,9 +6,25 @@
|
|||
|
||||
|
||||
function main() {
|
||||
SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"
|
||||
cd "${SCRIPTPATH}"
|
||||
echo "Working Dir: " $(pwd)
|
||||
source "../venv/bin/activate"
|
||||
|
||||
LOG_LEVEL=debug
|
||||
WORKER_COUNT=1
|
||||
ADDR=127.0.0.1
|
||||
PORT=8088
|
||||
TIMEOUT=120
|
||||
|
||||
# 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...
|
||||
gunicorn wsgi:app -b 127.0.0.1:8088 -k eventlet # <module>:<app> IE <file>:<flask app variable>
|
||||
# <module>:<app> IE <file>:<flask app variable>
|
||||
gunicorn wsgi:app
|
||||
-b $ADDR:$PORT \
|
||||
-k eventlet \
|
||||
-w $WORKER_COUNT \
|
||||
--timeout $TIMEOUT \
|
||||
--log-level $LOG_LEVEL
|
||||
}
|
||||
main $@;
|
||||
|
|
Loading…
Reference in New Issue