我正在尝试使用主管来管理我在 virtualenv 中运行 gunicorn 的 django 项目。我的 conf 文件如下所示:
[program:diasporamas]
command=/var/www/django/bin/gunicorn_django
directory=/var/www/django/django_test
process_name=%(program_name)s
user=www-data
autostart=false
stdout_logfile=/var/log/gunicorn_diasporamas.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=2
stderr_logfile=/var/log/gunicorn_diasporamas_errors.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=2enter code here
问题是,我需要主管在我的 virtualenv 中运行 'source bin/activate' 后启动该命令。我一直在谷歌周围寻找答案,但什么也没找到。
注意:我不想使用 virtualenvwrapper
请问有什么帮助吗?