mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-30 05:24:01 +03:00
f93a9f78d9
* Replace runserver_plus with runserver since it is not compatible with django >= 4.1 * Replace runserver_plus with runserver in post_gen_hooks --------- Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
14 lines
283 B
Bash
14 lines
283 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 0.0.0.0:8000
|
|
{%- endif %}
|