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 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 /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 %} {%- else %}
python manage.py runserver_plus 0.0.0.0:8000 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 python /app/manage.py compress
fi fi
{%- endif %} {%- endif %}
{% if cookiecutter.use_async %} {% if cookiecutter.use_async == 'y' %}
/usr/local/bin/gunicorn config.asgi --workers 4 --bind 0.0.0.0:5000 --chdir=/app -k uvicorn.workers.UvicornWorker /usr/local/bin/gunicorn config.asgi --bind 0.0.0.0:5000 --chdir=/app -k uvicorn.workers.UvicornWorker
{% else %} {% else %}
/usr/local/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app /usr/local/bin/gunicorn config.wsgi --bind 0.0.0.0:5000 --chdir=/app
{%- endif %} {%- endif %}