Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
file=/tmp/supervisor.sock ; (the path to the socket file)
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/ ; (supervisord pidfile;default
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:your app]
command=/path/to/virtual/env/bin/uwsgi -s /tmp/uwsgi.sock -w flask_file_name:app -H /path/to/virtual/env --chmod-socket 666

This comment has been minimized.

Copy link

@khoffrath khoffrath commented May 23, 2012

Why install uwsgi into the the virtualenv (line 17)? Wouldn't it make updating uwsgi easier if the system installation is used?


This comment has been minimized.

Copy link
Owner Author

@FlaviuSim FlaviuSim commented May 25, 2012

khoffrath, that's a good point. I should have probably done that. I'm just used to pip installing everything into a virtual env. I guess I could easily change uWSGI versions for different projects, but I don't have more than one project on that machine ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment