From 9cf280d34365ebf6fb6bea4a4c7330bb463d324c Mon Sep 17 00:00:00 2001 From: monosans Date: Fri, 23 Sep 2022 20:28:11 +0000 Subject: [PATCH] Reload uvicorn on html file change (#3866) --- docs/developing-locally.rst | 2 +- {{cookiecutter.project_slug}}/compose/local/django/start | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/developing-locally.rst b/docs/developing-locally.rst index 23bb7b9a..77c8a520 100644 --- a/docs/developing-locally.rst +++ b/docs/developing-locally.rst @@ -82,7 +82,7 @@ First things first. or if you're running asynchronously: :: - $ uvicorn config.asgi:application --host 0.0.0.0 --reload + $ uvicorn config.asgi:application --host 0.0.0.0 --reload --reload-include '*.html' .. _PostgreSQL: https://www.postgresql.org/download/ .. _Redis: https://redis.io/download diff --git a/{{cookiecutter.project_slug}}/compose/local/django/start b/{{cookiecutter.project_slug}}/compose/local/django/start index 9cbb6c89..3fe54735 100644 --- a/{{cookiecutter.project_slug}}/compose/local/django/start +++ b/{{cookiecutter.project_slug}}/compose/local/django/start @@ -7,7 +7,7 @@ set -o nounset python manage.py migrate {%- if cookiecutter.use_async == 'y' %} -uvicorn config.asgi:application --host 0.0.0.0 --reload +uvicorn config.asgi:application --host 0.0.0.0 --reload --reload-include '*.html' {%- else %} python manage.py runserver_plus 0.0.0.0:8000 {%- endif %}