更新于:
我设置了profile的环境变量,但是supervisor好像读取不到
[program:proc]
command=/home/JiHuo.Ma/venv/bin/gunicorn JiHuoMa:app -b 127.0.0.1:5000 -w 2
directory=/home/JiHuo.Ma/
autorestart=true
autostart=true
environment=JiHuoMa_PATH=/home/JiHuo.Ma,JiHuoMa_PATH2=/home/JiHuo.Ma2
很简单,配置个参数就好了,不知道这个版本的网站什么时候能写完,加油!!!Day after day.
转载请注明:【进程守护程序supervisor添加环境变量】https://jihuo.ma/supervisor-add-environment.html