Skip to content

Instantly share code, notes, and snippets.

@jbonfante
Created April 20, 2014 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbonfante/11113749 to your computer and use it in GitHub Desktop.
Save jbonfante/11113749 to your computer and use it in GitHub Desktop.
Sample uwsgi file for a dev/staging server, under py3k and django 1.6
[uwsgi]
chdir = /var/www/django/app
module = app.wsgi_staging
virtualenv=/var/www/django/env/
env = DJANGO_SETTINGS_MODULE=app.settings.staging
socket = /tmp/app.sock
master = 1
workers = 2
chmod-socket = 666
auto-procname = 1
pidfile = /tmp/app.pid
daemonize = /var/www/django/log/uwsgi_app.log
single-interpreter = true
uid = django
gid = www
enable-threads = true
harakiri = 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment