Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (12 sloc) 767 Bytes


you can use django_uwsgi.emperor module if you want to store vassals configs in PostgreSQL database.

Simply add 'django_uwsgi.emperor', into INSTALLED_APPS

INSTALLED_APPS += ['django_uwsgi.emperor',]


Populate vassals via django admin interface and start uwsgi with command like:

uwsgi --plugin emperor_pg --emperor "pg://host= user=foobar dbname=emperor;SELECT name,config,ts FROM vassals WHERE enabled = True"

Each time vassal added, removed, updated, enabled or disabled - uwsgi will start/stop it or reload.