Add options to reload django when file changes in windows docker (#4971)

* Add options to reload django when file changes in windows docker

* Fix Reloader interval as default and make code with indent to be only in docker
This commit is contained in:
quroom 2024-04-17 03:23:05 +09:00 committed by GitHub
parent db60766526
commit f79c89d928
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,6 +83,15 @@ if env("USE_DOCKER") == "yes":
# The node container isn't started (yet?)
pass
{%- endif %}
{%- if cookiecutter.windows == 'y' %}
# RunServerPlus
# ------------------------------------------------------------------------------
# This is a custom setting for RunServerPlus to fix reloader issue in Windows docker environment
# Werkzeug reloader type [auto, watchdog, or stat]
RUNSERVERPLUS_POLLER_RELOADER_TYPE = 'stat'
# If you have CPU and IO load issues, you can increase this poller interval e.g) 5
RUNSERVERPLUS_POLLER_RELOADER_INTERVAL = 1
{%- endif %}
{%- endif %}
# django-extensions