1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-01 10:01:21 +02:00

Use an alpine image rather than Debian buster: this is smaller

This commit is contained in:
Yohann D'ANELLO
2020-06-03 20:42:12 +02:00
parent a1d02ce657
commit dd62a32e08
6 changed files with 950 additions and 19 deletions

View File

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