Skip to content

Instantly share code, notes, and snippets.

@runozo
Created March 8, 2016 12:55
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 runozo/c3942ef47e9deb05c280 to your computer and use it in GitHub Desktop.
Save runozo/c3942ef47e9deb05c280 to your computer and use it in GitHub Desktop.
Config for a uwsgi vassal for Emperor mode
[uwsgi]
# Variabili
base = /srv/uwsgi_apps/%n
logbase = /var/log/uwsgi/apps
# Parametri per uwsgi
plugin = python3
pythonpath = %(base)
virtualenv = %(base)/env
# il mount poin è il nome del file senza estensione
mount = /%n=demo:app
socket = /tmp/%n.sock
processes = 2
logto = %(logbase)/%n.log
pidfile2 = /tmp/%n.pid
vacuum = true
manage-script-name = true
py-autoreload = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment