Created
May 4, 2016 19:15
-
-
Save omedhabib/8de8a5a7739726a0ab142a0f85295135 to your computer and use it in GitHub Desktop.
Gunicorn.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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