mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 12:04:03 +03:00
14 lines
354 B
Bash
14 lines
354 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o nounset
|
|
|
|
|
|
python manage.py migrate
|
|
{%- if cookiecutter.use_async == 'y' %}
|
|
/usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:8000 --chdir=/app -k uvicorn.workers.UvicornWorker -e DJANGO_SETTINGS_MODULE=config.settings.local --reload
|
|
{%- else %}
|
|
python manage.py runserver_plus 0.0.0.0:8000
|
|
{% endif %}
|