From 821eafc27b77e62faff4bd4edec646b5f4cbe72a Mon Sep 17 00:00:00 2001 From: Maxim Stewart Date: Sun, 22 Nov 2020 18:14:34 -0600 Subject: [PATCH] changed linux launch structure --- src/linux-start.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/linux-start.sh b/src/linux-start.sh index 22a6bb8..9ff91e5 100644 --- a/src/linux-start.sh +++ b/src/linux-start.sh @@ -10,8 +10,21 @@ function main() { cd "${SCRIPTPATH}" echo "Working Dir: " $(pwd) source "../venv/bin/activate" - # Note: Can replace 127.0.0.1 with 0.0.0.0 to make it 'network/internet' accessable... - # Note 2: Keycloak uses 8080. Change it or keep this as is. - gunicorn wsgi:app -b 127.0.0.1:6969 # : IE : + + LOG_LEVEL=debug + WORKER_COUNT=1 + ADDR=127.0.0.1 + PORT=6969 + 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... + # : IE : + gunicorn wsgi:app + -b $ADDR:$PORT \ + -k eventlet \ + -w $WORKER_COUNT \ + --timeout $TIMEOUT \ + --log-level $LOG_LEVEL } main $@;