mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-14 23:53:08 +00:00
* 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>
13 lines
283 B
Bash
13 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 %}
|