create basic django app serving the Gähsnitz website
This commit is contained in:
12
entrypoint.sh
Executable file
12
entrypoint.sh
Executable 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
|
||||
Reference in New Issue
Block a user