cookiecutter-django/{{cookiecutter.project_slug}}/Procfile
Jason Mok b6656379af
Replace deprecated uvicorn.workers with uvicorn-worker (#5110)
* chore: Replace deprecated uvicorn.workers with uvicorn-worker

* Add package and fix worker class name

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2024-06-08 14:56:02 +01:00

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 %}