Skip to content

Instantly share code, notes, and snippets.

@vakhov
Forked from omedhabib/Gunicorn.sh
Created June 28, 2019 11:00
Show Gist options
  • Select an option

  • Save vakhov/991e3df0e7939c5dca35e231a53197d8 to your computer and use it in GitHub Desktop.

Select an option

Save vakhov/991e3df0e7939c5dca35e231a53197d8 to your computer and use it in GitHub Desktop.
Gunicorn.sh
#!/usr/bin/env bash
PROCESSOR_COUNT=$(nproc)
GUNICORN_WORKER_COUNT=$(( PROCESSOR_COUNT * 2 + 1 ))
gunicorn -w ${GUNICORN_WORKER_COUNT} -b 0.0.0.0:9808 app:application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment