Skip to content

Instantly share code, notes, and snippets.

@omedhabib
Created May 4, 2016 19:17
Show Gist options
  • Save omedhabib/0e61685d14cd019622c02817034f26e3 to your computer and use it in GitHub Desktop.
Save omedhabib/0e61685d14cd019622c02817034f26e3 to your computer and use it in GitHub Desktop.
uWSGI.sh
#!/usr/bin/env bash
PROCESSOR_COUNT=$(nproc)
THREAD_COUNT=2
uwsgi --http :9808 --plugin python2 --wsgi-file app.py --processes "$PROCESSOR_COUNT" --threads "$THREAD_COUNT" --disable-logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment