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:
@ -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
|
||||
|
Reference in New Issue
Block a user