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

Emperor

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',]

screenshots/screenshot4.png

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

uwsgi --plugin emperor_pg --emperor "pg://host=127.0.0.1 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.