python - supervisor 出错?
大家讲道理
大家讲道理 2017-04-18 09:05:03
0
1
809


这是supervisord.conf文件 内容为:
[program:mysite]
command=uwsgi --http :8000 --chdir ~/mysite --module mysite.wsgi
directory=~/mysite
startsecs=0
stopwaitsecs=0
autostart=true
autorestart=true

但ip地址加8000端口访问不了网页

而单独用uwsgi命令就可以成功部署并访问
新手求解答

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
刘奇

supervisor will not be extended~
directory=~/mysite will not be extended to /home/user/mysite
The document only writes %(here)s to be extended. At the same time, after writing the directory to the absolute path of mysite, By default, it has been switched to mysite,
command=uwsgi --http :8000 --chdir ~/mysite --module mysite.wsgi, so there is no need to write --chdir ~/mysite
Summary
command=uwsgi --http :8000 - -module mysite.wsgi
directory=/home/XXX/mysite

directory

When supervisord daemonizes, switch to this directory. This option can include the value %(here)s, which expands to the directory in

which the supervisord configuration file was found.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template