Skip to content

Instantly share code, notes, and snippets.

@creamidea
Created May 17, 2016 13:32
Show Gist options
  • Save creamidea/1d714d61bac981f13caee2458f584ad0 to your computer and use it in GitHub Desktop.
Save creamidea/1d714d61bac981f13caee2458f584ad0 to your computer and use it in GitHub Desktop.
# weixnpy_uwsgi.ini file
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /home/www/icslg/wx/weixnpy/
# Django's wsgi file
module = weixnpy.wsgi:application
env = DJANGO_SETTINGS_MODULE = weixnpy.settings
# the virtualenv (full path)
# virtualenv = /opt/weixnpy/
# home = /usr/local
# py-programname = /usr/local/bin/python2.7
# pythonpath = /home/username/weixnpy/
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 4
# the socket (use the full path to be safe
socket = 127.0.0.1:8001
# socket = /tmp/weixn.sock
# socket = /var/run/weixn.sock
# ... with appropriate permissions - may be needed
chmod-socket = 664
chown-socket = www:www
# clear environment on exit
vacuum = true
logto = /var/log/uwsgi.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment