mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-14 05:36:58 +03:00
b6656379af
* chore: Replace deprecated uvicorn.workers with uvicorn-worker * Add package and fix worker class name --------- Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
11 lines
419 B
Plaintext
11 lines
419 B
Plaintext
release: python manage.py migrate
|
|
{%- if cookiecutter.use_async == "y" %}
|
|
web: gunicorn config.asgi:application -k uvicorn_worker.UvicornWorker
|
|
{%- else %}
|
|
web: gunicorn config.wsgi:application
|
|
{%- endif %}
|
|
{%- if cookiecutter.use_celery == "y" %}
|
|
worker: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app worker --loglevel=info
|
|
beat: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app beat --loglevel=info
|
|
{%- endif %}
|