From f99c987f2b386ba1aefc7172a1747f768825ec42 Mon Sep 17 00:00:00 2001 From: "blagoja.stojkoski" Date: Wed, 13 Jul 2022 11:17:25 +0200 Subject: [PATCH] * fixes uwsgi number of process var check --- images/ckan/2.9/setup/app/start_ckan.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/images/ckan/2.9/setup/app/start_ckan.sh b/images/ckan/2.9/setup/app/start_ckan.sh index c55474a..f1b509f 100755 --- a/images/ckan/2.9/setup/app/start_ckan.sh +++ b/images/ckan/2.9/setup/app/start_ckan.sh @@ -12,13 +12,8 @@ then done fi -# Set the common uwsgi options -if [ ${UWSGI_PROC_NO} == "0" ] || [ ${UWSGI_PROC_NO} == "" ]; - then - echo setting USWGI proc to 2 - ${UWSGI_PROC_NO}=2 -fi -UWSGI_OPTS="--socket /tmp/uwsgi.sock --uid ckan --gid ckan --http :5000 --master --enable-threads --wsgi-file /srv/app/wsgi.py --module wsgi:application --lazy-apps --gevent 2000 -p ${UWSGI_PROC_NO} -L --gevent-early-monkey-patch --vacuum --harakiri 50 --callable application" +echo "Starting UWSGI with '${UWSGI_PROC_NO:-2}' workers" +UWSGI_OPTS="--socket /tmp/uwsgi.sock --uid ckan --gid ckan --http :5000 --master --enable-threads --wsgi-file /srv/app/wsgi.py --module wsgi:application --lazy-apps --gevent 2000 -p ${UWSGI_PROC_NO:-2} -L --gevent-early-monkey-patch --vacuum --harakiri 50 --callable application" # Run the prerun script to init CKAN and create the default admin user python prerun.py || { echo '[CKAN prerun] FAILED. Exiting...' ; exit 1; }