changed the if statment for uswgi proc num

This commit is contained in:
filip.mihajlovski 2022-10-20 14:46:13 +02:00
parent 000b49f19d
commit f33f031726
1 changed files with 3 additions and 6 deletions

View File

@ -13,12 +13,9 @@ then
fi fi
# Set the common uwsgi options # Set the common uwsgi options
if [ ${UWSGI_PROC_NO} == "0" ] || [ ${UWSGI_PROC_NO} == "" ]; echo "Starting UWSGI with '${UWSGI_PROC_NO:-2}' workers"
then
echo setting USWGI proc to 2 UWSGI_OPTS="--socket /tmp/uwsgi.sock --uid 92 --gid 92 --http :5000 --master --enable-threads --paste config:/srv/app/production.ini --paste-logger /srv/app/production.ini --lazy-apps --gevent 2000 -p ${UWSGI_PROC_NO:-2} -L --gevent-early-monkey-patch"
${UWSGI_PROC_NO}=2
fi
UWSGI_OPTS="--socket /tmp/uwsgi.sock --uid 92 --gid 92 --http :5000 --master --enable-threads --paste config:/srv/app/production.ini --paste-logger /srv/app/production.ini --lazy-apps --gevent 2000 -p ${UWSGI_PROC_NO} -L --gevent-early-monkey-patch"
# Run the prerun script to init CKAN and create the default admin user # Run the prerun script to init CKAN and create the default admin user
python prerun.py || { echo '[CKAN prerun] FAILED. Exiting...' ; exit 1; } python prerun.py || { echo '[CKAN prerun] FAILED. Exiting...' ; exit 1; }