Skip to content

Instantly share code, notes, and snippets.

@shashisingh
Forked from omedhabib/uWSGI.sh
Created March 10, 2022 16:30
Show Gist options
  • Save shashisingh/bfd9a2ab2e40d3422047f3be563ea2e6 to your computer and use it in GitHub Desktop.
Save shashisingh/bfd9a2ab2e40d3422047f3be563ea2e6 to your computer and use it in GitHub Desktop.

Revisions

  1. @omedhabib omedhabib created this gist May 4, 2016.
    6 changes: 6 additions & 0 deletions uWSGI.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/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