Skip to content

Instantly share code, notes, and snippets.

@guillaumepiot
Created June 19, 2013 11:12
Show Gist options
  • Save guillaumepiot/5813538 to your computer and use it in GitHub Desktop.
Save guillaumepiot/5813538 to your computer and use it in GitHub Desktop.
uWSGI - Default site config
description "uWSGI server for mysite.com"
start on runlevel 2
stop on runlevel [016]
respawn
exec /usr/local/bin/uwsgi \
--chdir=/var/www/mysite.com \
--virtualenv=/var/www/mysite.com \
--pythonpath=/var/www/mysite.com/mysiteproject \
--socket 127.0.0.1:8888 \
--env DJANGO_SETTINGS_MODULE=mysiteproject.settings.production \
--module 'django.core.handlers.wsgi:WSGIHandler()' \
--master \
--processes 1 \
--vacuum \
--max-requests 500 \
--logto /var/www/mysite.com/logs/wsgi.log \
--uid username \
--gid groupname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment