Enable django watchfiles runserver reloader

This commit is contained in:
Daniel Egger 2022-10-10 17:14:01 +02:00
parent a2bb4aeb18
commit be68854545
2 changed files with 2 additions and 5 deletions

View File

@ -75,5 +75,5 @@ fi
if [ "$START_BACKGROUND" = true ]; then
python3 server/manage.py runserver "${DJANGO_PORT}" --settings="$DJANGO_SETTINGS_MODULE" > /dev/null &
else
python3 server/manage.py runserver "${DJANGO_PORT}" --settings="$DJANGO_SETTINGS_MODULE"
cd server && python3 manage.py runserver "${DJANGO_PORT}" --settings="$DJANGO_SETTINGS_MODULE"
fi

View File

@ -580,10 +580,7 @@ if APP_ENVIRONMENT == "development":
# django-extensions
# ------------------------------------------------------------------------------
# https://django-extensions.readthedocs.io/en/latest/installation_instructions.html#configuration
INSTALLED_APPS += [
"django_extensions",
# "django_watchfiles"
] # noqa F405
INSTALLED_APPS += ["django_extensions", "django_watchfiles"] # noqa F405
if APP_ENVIRONMENT in ["production", "caprover"] or APP_ENVIRONMENT.startswith(
"caprover"