这是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命令就可以成功部署并访问
新手求解答
怪我咯2017-04-18 09:07:03
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.