Skip to content

Instantly share code, notes, and snippets.

@myeonggyunhan
Created February 9, 2017 04:46
Show Gist options
  • Save myeonggyunhan/fe77ea739a37a90a63bf047c35d77c12 to your computer and use it in GitHub Desktop.
Save myeonggyunhan/fe77ea739a37a90a63bf047c35d77c12 to your computer and use it in GitHub Desktop.
uWSGI template for Django project
[uwsgi]
# Django project name
project-name = ProjectName
# Django project path
project-home = /path/to/project/ProjectName
# Base directory path
chdir = %(project-home)
# Django's wsgi file
wsgi-file = %(project-home)/%(project-name)/wsgi.py
# Virtualenv path
home = /path/to/virtualenv
# Master
master = true
# Maximum number of processes
processes = 4
# The socket (use the full path to be safe)
socket = /tmp/uwsgi.sock
# Appropriate permissions - *may* be needed
chmod-socket = 664
# Clear environment on exit
vacuum = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment