Skip to content

Instantly share code, notes, and snippets.

@puilp0502
Created June 26, 2017 15:37
Show Gist options
  • Select an option

  • Save puilp0502/a176214695eb599cfa6215f9e5f75caa to your computer and use it in GitHub Desktop.

Select an option

Save puilp0502/a176214695eb599cfa6215f9e5f75caa to your computer and use it in GitHub Desktop.

Revisions

  1. puilp0502 created this gist Jun 26, 2017.
    27 changes: 27 additions & 0 deletions uwsgi.ini
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    [uwsgi]

    # Django-related settings
    # the base directory (full path)
    chdir = /home/ubuntu/(project-dir)
    # Django's wsgi file
    module = (project-name).wsgi:application
    # the virtualenv (full path)
    home = /home/ubuntu/.venv/(venv-name)/

    # process-related settings
    # master
    master = true
    # maximum number of worker processes
    processes = 8
    # the socket (use the full path to be safe)
    # should match the one specified in nginx conf
    socket = /run/uwsgi/(project-name).sock
    # ... with appropriate permissions - may be needed
    chmod-socket = 664
    # clear environment on exit
    vacuum = true
    #plugins = python34
    harakiri = 15
    socket-timeout = 15
    listen = 500
    enable-threads = true