OK I have Django, nginx and uWSGI set up on my server…the problem is I start uWSGI manually via this command:
uwsgi -s /home/user/sites/sock/uwsgi.sock -t 10 -M -p 1 -C –pythonpath /home/user/sites/ -w mysite.django_wsgi
And it's working great. The thing I would like to do is use supervisord to control the uWSGI processes (start, stop, etc.). How would I do this, what would the supervisord config look like?
Best Answer
I found this was pretty confusing until I discovered emperor mode.
This means you can do one supervisord instance to manage all of your configs:
And then you'd pop any config files (ini, xml, yaml) for apps into the
/etc/uwsgi/apps-enabled
directory.Not sure if this works with 0.9, but defintely works with 1.0.
Here's an example ini for a Flask app: