This topic created in 3678 days ago, the information mentioned may be changed or developed.
在虚拟环境中部署 flask 应用,我的 supervisor.conf 文件添加如下代码, 执行 sudo supervisorctl -c supervisor.conf start all 命令后报错: myapp: ERROR (no such file) 我的 myapp.py 脚本就是放在 /home/koing/myproject 中了啊
[program:myapp]
command=/home/koing/myproject/venv/bin/gunicorn -w4 -b0.0.0.0:2170 myapp:app
directory=/home/koing/myproject
startsecs=0
stopwaitsecs=0
autostart=false
autorestart=false
stdout_logfile=/home/koing/myproject/log/gunicorn.log ; log 日志
stderr_logfile=/home/koing/myproject/log/gunicorn.err