mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-09 21:24:43 +00:00
13 lines
256 B
Bash
13 lines
256 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o nounset
|
|
|
|
|
|
python manage.py migrate
|
|
{%- if cookiecutter.use_async %}
|
|
/usr/local/bin/uvicorn config.asgi --bind 0.0.0.0:5000 --chdir=/app
|
|
{%- else %}
|
|
python manage.py runserver_plus 0.0.0.0:8000
|
|
{% endif %}
|