mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 03:54:02 +03:00
5bf90a43a9
This reverts commit f93a9f78d9
In #4255, `runserver_plus` was replaced by `runserver` due to some bugs in django-extensions, preventing us to upgrade Django.
In #4372, django-extensions was upgraded to a version with a fix, so we can go back to using `runserver_plus`.
14 lines
288 B
Bash
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 %}
|