cookiecutter-django/{{cookiecutter.project_slug}}/compose/local/django/start
Chao Yang Wu 51f4374a8a
Fix graceful shutdown of local dev containers and use watchfiles for beat + flower (#3925)
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-11-23 14:51:20 +00:00

14 lines
288 B
Bash

#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
python manage.py migrate
{%- if cookiecutter.use_async == 'y' %}
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 %}