Skip to content

Instantly share code, notes, and snippets.

@omedhabib
Created May 4, 2016 19:16
Show Gist options
  • Save omedhabib/8f0e6f7d0103780d3f6f0f73108a86b2 to your computer and use it in GitHub Desktop.
Save omedhabib/8f0e6f7d0103780d3f6f0f73108a86b2 to your computer and use it in GitHub Desktop.
mod_WSGI-express.sh
#!/usr/bin/env bash
PROCESSOR_COUNT=$(nproc)
THREAD_COUNT=2
USER=www-data
GROUP=www-data
mod_wsgi-express start-server app.py --port 9808 --processes "$PROCESSOR_COUNT" --threads "$THREAD_COUNT" --user "$USER" --group "$GROUP"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment