nginx + uwsgi + django emperor模式不起作用

时间:2018-01-25 05:59:14

标签: python angularjs django nginx uwsgi

我在django中进行多应用程序nginx + uwsgi设置。我关注此documentation 为我的项目设置emperor模式。 当我运行" uwsgi --ini myproject_uwsgi.ini"但是我无法按照此文档部署emperor模式。 我研究了很多文档,但无法找到与皇帝模式设置相关的相关信息。  我的nginx.conf文件:(angularJS frontend)

server {
    listen 80;
    server_name 192.168.xx.xx;
    root /home/user/Myspace/workspace/Myproject_frontend/dist;
}

我的" etc / uwsgi / vassals / uwsgi.ini"文件看起来像:

[uwsgi]

#Django-related settings
#Django's wsgi file
wsgi-file = /home/user/Myspace/workspace/myproject/myproject/wsgi.py
http = 192.168.xx.xx:8080
virtualenv = /home/user/Myspace/VENV_MYPROD

另外,我在" /etc/systemd/system/uwsgi.service"中创建了一个uwsgi.service文件。启动emperor模式服务,它看起来像:

[Unit]
Description=uWSGI Emperor service
After=syslog.target

[Service]
ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/vassals/
RuntimeDirectory= uwsgi
Restart=always
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all

[Install]
WantedBy=multi-user.target

请提供有关设置uwsgi emperor模式的帮助。

0 个答案:

没有答案
相关问题