From b2132057c68ab9a71f5df961dfd807d66e1aa764 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Sun, 25 Jan 2026 10:52:04 -0300 Subject: [PATCH] DEV_MODE now uses django runserver instead of gunicorn --- init.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 -