Removed the 4 workers from the production start of uvicorn

This commit is contained in:
Andrew-Chen-Wang 2020-03-24 21:46:40 -04:00
parent 7cd390854b
commit 367225e4e8
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ set -o nounset
python manage.py migrate
{%- if cookiecutter.use_async %}
{%- 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

View File

@ -27,8 +27,8 @@ if compress_enabled; then
python /app/manage.py compress
fi
{%- endif %}
{% if cookiecutter.use_async %}
/usr/local/bin/gunicorn config.asgi --workers 4 --bind 0.0.0.0:5000 --chdir=/app -k uvicorn.workers.UvicornWorker
{% if cookiecutter.use_async == 'y' %}
/usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:5000 --chdir=/app -k uvicorn.workers.UvicornWorker
{% else %}
/usr/local/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app
{%- endif %}