Skip to content

Instantly share code, notes, and snippets.

@hamsolodev
Created December 8, 2013 05:52
Show Gist options
  • Save hamsolodev/7853803 to your computer and use it in GitHub Desktop.
Save hamsolodev/7853803 to your computer and use it in GitHub Desktop.
[uwsgi]
socket = /tmp/app.sock
chdir = /home/USER/sites/site.com/repo.git
env = NEW_RELIC_ENVIRONMENT=production
env = NEW_RELIC_CONFIG_FILE=newrelic.ini
uid = USER
chown-socket = www-data:GROUP
chmod-socket = 660
# so system cairo can be imported
pythonpath = /usr/lib/python2.7/dist-packages/
virtualenv = /home/USER/sites/site.com/env
module = wsgi
processes = 4
threads = 4
# watch workers using `uwsgitop`
stats = 127.0.0.1:9191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment