在虚拟环境中部署 flask 应用,执行 sudo supervisorctl -c supervisor.conf start all 命令后报错: myapp: ERROR (no such file)

2016-04-03 19:16:50 +08:00
 biexiawo
在虚拟环境中部署 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
2335 次点击
所在节点    Python
1 条回复
biexiawo
2016-04-03 23:31:10 +08:00
已解决!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/268333

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX