Created
April 27, 2012 15:09
-
-
Save FlaviuSim/2510028 to your computer and use it in GitHub Desktop.
supervisor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[unix_http_server] | |
file=/tmp/supervisor.sock ; (the path to the socket file) | |
[supervisord] | |
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.pid ; (supervisord pidfile;default supervisord.pid) | |
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) | |
[supervisorctl] | |
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 | |
directory=/path/to/app | |
autostart=true | |
autorestart=true | |
stdout_logfile=/path/to/app/logs/uwsgi.log | |
redirect_stderr=true | |
stopsignal=QUIT |
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
Why install uwsgi into the the virtualenv (line 17)? Wouldn't it make updating uwsgi easier if the system installation is used?