使用Python自带虚拟环境的情况下 supervisor配置文件的写法

412 阅读1分钟

[program:bluelog]
command=/你的虚拟环境文件夹/bin/gunicorn wsgi:app --preload -w 3 -b 127.0.0.1:8000 
directory=/你的项目文件
....

command这一行直接使用绝对路径标明虚拟环境即可