-
-
Save vakhov/991e3df0e7939c5dca35e231a53197d8 to your computer and use it in GitHub Desktop.
Gunicorn.sh
This file contains hidden or 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