var for uswgi num of spawns

This commit is contained in:
filip.mihajlovski 2022-07-06 12:12:19 +02:00
parent 3e792771eb
commit df1c009836
1 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,12 @@ then
fi fi
# Set the common uwsgi options # Set the common uwsgi options
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 2 -L --gevent-early-monkey-patch --vacuum --harakiri 50 --callable application" if [ ${UWSGI_PROC_NO} == "0" ] || [ ${UWSGI_PROC_NO} == "null" ] || [ ${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"
# 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; }