mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-07 11:04:01 +02:00
Upgrade for Debian Buster
This commit is contained in:
committed by
club-med
parent
a6db8a37e7
commit
52af84b146
@ -5,9 +5,8 @@
|
||||
# Option "-i" will be only available in Django 3.0+, but it does not support Python 3.5
|
||||
#python manage.py compilemessages -i ".tox" -i "venv"
|
||||
python manage.py compilemessages
|
||||
python manage.py makemigrations
|
||||
|
||||
# Wait for database
|
||||
# Wait for database (docker)
|
||||
sleep 2
|
||||
|
||||
python manage.py migrate
|
||||
@ -16,16 +15,12 @@ python manage.py collectstatic --no-input
|
||||
# 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 --socket "$(pwd)/uwsgi.sock" --chmod-socket=600 --master --plugins python3 \
|
||||
--module med.wsgi:application --env DJANGO_SETTINGS_MODULE=med.settings \
|
||||
--processes 4 --harakiri=20 --max-requests=5000 --vacuum \
|
||||
--static-map /static="$(pwd)/static"
|
||||
|
||||
#uwsgi --chdir="$(pwd)" \
|
||||
# --pidfile="$(pwd)/uwsgi.pid" \
|
||||
# --daemonize="$(pwd)/uwsgi.log" \
|
||||
# --protocol=fastcgi
|
||||
|
Reference in New Issue
Block a user