From 7577a46777fd820ff8bb6202713a653861237aec Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Tue, 22 Nov 2022 22:55:15 +0000 Subject: [PATCH] Ensure uvicorn is run via exec for better signal handling --- {{cookiecutter.project_slug}}/compose/local/django/start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/compose/local/django/start b/{{cookiecutter.project_slug}}/compose/local/django/start index 0810c0286..ec57dc8e4 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 --reload-include '*.html' +exec uvicorn config.asgi:application --host 0.0.0.0 --reload --reload-include '*.html' {%- else %} exec python manage.py runserver_plus 0.0.0.0:8000 {%- endif %}