Skip to content

Instantly share code, notes, and snippets.

@ziplus4
Created October 23, 2015 05:02
Show Gist options
  • Select an option

  • Save ziplus4/298f6f96b00d9413b9dd to your computer and use it in GitHub Desktop.

Select an option

Save ziplus4/298f6f96b00d9413b9dd to your computer and use it in GitHub Desktop.

Revisions

  1. ziplus4 created this gist Oct 23, 2015.
    22 changes: 22 additions & 0 deletions mysite_uwsgi.ini
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # mysite_uwsgi.ini file
    [uwsgi]

    # Django-related settings
    # the base directory (full path)
    chdir = /path/to/your/project
    # Django's wsgi file
    module = project.wsgi
    # the virtualenv (full path)
    home = /path/to/virtualenv

    # process-related settings
    # master
    master = true
    # maximum number of worker processes
    processes = 10
    # the socket (use the full path to be safe
    socket = /path/to/your/project/mysite.sock
    # ... with appropriate permissions - may be needed
    # chmod-socket = 664
    # clear environment on exit
    vacuum = true