Created
June 19, 2013 11:12
-
-
Save guillaumepiot/5813538 to your computer and use it in GitHub Desktop.
uWSGI - Default site config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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