Less complexity for download_data_openlibrary

This commit is contained in:
Yohann D'ANELLO 2020-02-10 12:03:40 +01:00
parent d3a4a246d9
commit 778e3239a4
2 changed files with 16 additions and 14 deletions

View File

@ -11,19 +11,21 @@ sleep 2
python manage.py migrate
python manage.py collectstatic --no-input
python manage.py runserver 0.0.0.0:8000
# harakiri parameter respawns processes taking more than 20 seconds
# max-requests parameter respawns processes after serving 5000 requests
# vacuum parameter cleans up when stopped
uwsgi --chdir="$(pwd)" \
--module=med.wsgi:application \
--env DJANGO_SETTINGS_MODULE=med.settings \
--master \
--pidfile="$(pwd)/uwsgi.pid" \
--socket="$(pwd)/uwsgi.sock" \
--processes=5 \
--chmod-socket=600 \
--harakiri=20 \
--max-requests=5000 \
--vacuum \
--daemonize="$(pwd)/uwsgi.log" \
--protocol=fastcgi
#uwsgi --chdir="$(pwd)" \
# --module=med.wsgi:application \
# --env DJANGO_SETTINGS_MODULE=med.settings \
# --master \
# --pidfile="$(pwd)/uwsgi.pid" \
# --socket="$(pwd)/uwsgi.sock" \
# --processes=5 \
# --chmod-socket=600 \
# --harakiri=20 \
# --max-requests=5000 \
# --vacuum \
# --daemonize="$(pwd)/uwsgi.log" \
# --protocol=fastcgi

View File

@ -9,6 +9,6 @@ python-stdnum==1.10
djangorestframework==3.9.2
pyyaml==3.13
coreapi==2.3.3
psycopg2==2.7.7
psycopg2
uwsgi==2.0.18
mysqlclient==1.4.3