[英]How to deploy Django apps on cwp Cent Os 7 using gunicorn and nginx
我已經嘗試過很多次這個藝術 https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-centos-7但我不是得到結果。
我使用帶有 CentOs 7 和 CWP 的專用服務器,但我無法通過 nginx 服務器連接我的 wsi.py 文件
我在 centos7 cwp 上進行第一次部署,所以請隨時建議我更新鮮。
假設您無法配置 nginx 來傳遞您的應用程序的流量。 您需要通過添加以下內容來更新 cwp 中 /etc/nginx/conf.d/vhosts/ 中的域的虛擬主機:
location /static/ {
root /home/domain_account/public_html/;
expires 1d;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.