mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 20:47:10 +00:00
Docker
This commit is contained in:
parent
3d81977dbd
commit
5b2dd84115
@ -11,21 +11,19 @@ sleep 2
|
|||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
python manage.py collectstatic --no-input
|
python manage.py collectstatic --no-input
|
||||||
|
|
||||||
python manage.py runserver 0.0.0.0:8000
|
|
||||||
|
|
||||||
# harakiri parameter respawns processes taking more than 20 seconds
|
# harakiri parameter respawns processes taking more than 20 seconds
|
||||||
# max-requests parameter respawns processes after serving 5000 requests
|
# max-requests parameter respawns processes after serving 5000 requests
|
||||||
# vacuum parameter cleans up when stopped
|
# vacuum parameter cleans up when stopped
|
||||||
#uwsgi --chdir="$(pwd)" \
|
uwsgi --chdir="$(pwd)" \
|
||||||
# --module=med.wsgi:application \
|
--module=med.wsgi:application \
|
||||||
# --env DJANGO_SETTINGS_MODULE=med.settings \
|
--env DJANGO_SETTINGS_MODULE=med.settings \
|
||||||
# --master \
|
--master \
|
||||||
# --pidfile="$(pwd)/uwsgi.pid" \
|
--pidfile="$(pwd)/uwsgi.pid" \
|
||||||
# --socket="$(pwd)/uwsgi.sock" \
|
--socket="$(pwd)/uwsgi.sock" \
|
||||||
# --processes=5 \
|
--processes=5 \
|
||||||
# --chmod-socket=600 \
|
--chmod-socket=600 \
|
||||||
# --harakiri=20 \
|
--harakiri=20 \
|
||||||
# --max-requests=5000 \
|
--max-requests=5000 \
|
||||||
# --vacuum \
|
--vacuum \
|
||||||
# --daemonize="$(pwd)/uwsgi.log" \
|
--daemonize="$(pwd)/uwsgi.log" \
|
||||||
# --protocol=fastcgi
|
--protocol=fastcgi
|
@ -9,6 +9,6 @@ python-stdnum==1.10
|
|||||||
djangorestframework==3.9.2
|
djangorestframework==3.9.2
|
||||||
pyyaml==3.13
|
pyyaml==3.13
|
||||||
coreapi==2.3.3
|
coreapi==2.3.3
|
||||||
psycopg2
|
psycopg2==2.7.7
|
||||||
uwsgi==2.0.18
|
uwsgi==2.0.18
|
||||||
mysqlclient==1.4.3
|
mysqlclient==1.4.3
|
||||||
|
Loading…
Reference in New Issue
Block a user