🎉 Init Django project

This commit is contained in:
Yohann D'ANELLO
2020-11-15 17:05:54 +01:00
commit a2597dec19
16 changed files with 1122 additions and 0 deletions

11
entrypoint.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
python manage.py migrate
nginx
if [ "$DJANGO_STAGE" = "prod" ]; then
gunicorn -b 0.0.0.0:8000 --workers=2 --threads=4 --worker-class=gthread lglog.wsgi --access-logfile '-' --error-logfile '-';
else
python manage.py runserver 0.0.0.0:8000;
fi