I use supervisor to wrap all my gunicorn/celery/flask processes in Python. Here's an example config - the important part are the 'directory' and 'environment' options.
[program:gunicorn] directory=/srv/www/application/ command=/home/ubuntu/.virtualenvs/venv/bin/gunicorn_django -c /etc/ gunicorn.conf.py environment=PATH="/home/ubuntu/.virtualenvs/venv/bin" user=ubuntu autostart=true autorestart=true stdout_logfile=/var/log/supervisord.log redirect_stderr=true On 30 November 2012 11:26, Esteban Feldman <[email protected]> wrote: > virtualenv
_______________________________________________ Supervisor-users mailing list [email protected] https://lists.supervisord.org/mailman/listinfo/supervisor-users
