美文网首页
django部署

django部署

作者: 旧时初_2e8d | 来源:发表于2018-10-19 19:23 被阅读0次

nginx.conf文件


server {
    listen    80;
    server_name 39.107.77.223 localhost;

    access_log /home/logs/access.log;
    error_log /home/logs/error.log;

    location / {
        include uwsgi_params;
        uwsgi_pass 127.0.0.1:8890;
    }

    location /static/ {
        alias /home/src/fresh_shop/static;
    }

    location /media/ {
        alias /home/media/;
    }
}

uwsgi.ini文件


master = True

processes = 4

chdir = /home/src/fresh_shop

pythonpath = /home/env/ttsxenv/bin/python3

module = fresh_shop.wsgi

socket = 127.0.0.1:8890

logto = /home/logs/ttsxuwsgi.log

django详细部署

相关文章

网友评论

      本文标题:django部署

      本文链接:https://www.haomeiwen.com/subject/ttuuzftx.html