diff --git a/init.sh b/init.sh index b841bc3..8772d2b 100644 --- a/init.sh +++ b/init.sh @@ -17,8 +17,15 @@ fi python manage.py migrate --noinput python manage.py collectstatic --noinput if [[ "${DEV_MODE,,}" == "true" ]]; then - echo "DEV_MODE=true -> Starting Gunicorn with auto-reload" - exec gunicorn wireguard_webadmin.wsgi:application --bind 0.0.0.0:8000 --workers 2 --threads 2 --timeout 60 --log-level info --capture-output --access-logfile - --error-logfile - --reload + echo "" + echo "" + echo "================================================================" + echo "= WARNING: DEV_MODE is enabled. Do not use this in production! =" + echo "================================================================" + echo "" + echo "" + echo "DEV_MODE=true -> Starting Django runserver" + exec python manage.py runserver 0.0.0.0:8000 else echo "Starting Gunicorn" exec gunicorn wireguard_webadmin.wsgi:application --bind 0.0.0.0:8000 --workers 2 --threads 2 --timeout 60 --log-level info --capture-output --access-logfile - --error-logfile -