create basic django app serving the Gähsnitz website

This commit is contained in:
2022-05-20 22:32:32 +02:00
commit 3b38c9fdec
18 changed files with 286 additions and 0 deletions

12
entrypoint.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
if [ "$DJANGO_PRODUCTION_MODE" == "true" ]; then
echo "starting production server ..."
gunicorn --bind=0.0.0.0:8000 --workers=2 gaehsnitzproject.wsgi
else
echo "starting development server ..."
python manage.py runserver 0.0.0.0:8000
fi