#!/bin/bash -ex

echo "$GIT_SHA" > static/revision.txt
exec gunicorn basket.wsgi --bind "0.0.0.0:${PORT:-8000}" \
                          --workers "${WSGI_NUM_WORKERS:-8}" \
                          --worker-class "${WSGI_WORKER_CLASS:-meinheld.gmeinheld.MeinheldWorker}" \
                          --log-level "${WSGI_LOG_LEVEL:-warning}" \
                          --error-logfile - \
                          --access-logfile -

#!/bin/bash -ex

echo "$GIT_SHA" > static/revision.txt
exec gunicorn basket.wsgi --bind "0.0.0.0:${PORT:-8000}" \
                          --workers "${WSGI_NUM_WORKERS:-2}" \
                          --worker-class "${WSGI_WORKER_CLASS:-meinheld.gmeinheld.MeinheldWorker}" \
                          --log-level "${WSGI_LOG_LEVEL:-warning}" \
                          --error-logfile - \
                          --access-logfile -

--- 
+++ 
@@ -2,7 +2,7 @@
 
 echo "$GIT_SHA" > static/revision.txt
 exec gunicorn basket.wsgi --bind "0.0.0.0:${PORT:-8000}" \
-                          --workers "${WSGI_NUM_WORKERS:-8}" \
+                          --workers "${WSGI_NUM_WORKERS:-2}" \
                           --worker-class "${WSGI_WORKER_CLASS:-meinheld.gmeinheld.MeinheldWorker}" \
                           --log-level "${WSGI_LOG_LEVEL:-warning}" \
                           --error-logfile - \
Increase default WSGI worker count to 8
