1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 02:38:29 +02:00

No longer use insecure mode, setup external nginx server (better performances)

This commit is contained in:
Yohann D'ANELLO
2020-06-03 17:51:50 +02:00
parent 3f83fd6ef3
commit a1d02ce657
4 changed files with 37 additions and 3 deletions

View File

@ -4,4 +4,10 @@ python manage.py compilemessages
python manage.py makemigrations
python manage.py migrate
python manage.py runserver 0.0.0.0:8000 --insecure
service nginx start
if [ "$TFJM_STAGE" = "prod" ]; then
gunicorn -b 0.0.0.0:8000 --workers=2 --threads=4 --worker-class=gthread tfjm.wsgi --access-logfile '-';
else
./manage.py runserver 0.0.0.0:8000;
fi