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