cookiecutter-django/{{cookiecutter.project_slug}}/compose/local/django/start
2020-04-28 16:26:34 -04:00

14 lines
251 B
Bash

#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
python manage.py migrate
{%- if cookiecutter.use_async == 'y' %}
uvicorn config.asgi:application --host 0.0.0.0 --reload
{%- else %}
python manage.py runserver_plus 0.0.0.0:8000
{% endif %}