cookiecutter-django/{{cookiecutter.project_slug}}/compose/local/django/start

14 lines
283 B
Plaintext
Raw Normal View History

#!/bin/bash
2018-05-21 15:39:12 +03:00
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 0.0.0.0:8000
{%- endif %}