Skip to content

Instantly share code, notes, and snippets.

@charlesthk
Created April 1, 2018 23:42
Show Gist options
  • Save charlesthk/ac5ba74cb74fe5d5b46e1489f4f73070 to your computer and use it in GitHub Desktop.
Save charlesthk/ac5ba74cb74fe5d5b46e1489f4f73070 to your computer and use it in GitHub Desktop.
[uwsgi]
module = project.wsgi:application
master = true
pidfile = django.uwsgi.pid
enable-threads = true
http = 127.0.0.1:8000
processes = 5
# respawn processes taking more than 50 seconds
harakiri = 50
# respawn processes after serving 5000 requests
max-requests = 5000
# clear environment on exit
vacuum = true
# optional path to a virtualenv
home = venv
# background the process
daemonize = django.uwsgi.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment