Giter VIP home page Giter VIP logo

Comments (6)

1251240000 avatar 1251240000 commented on May 27, 2024

建议尝试使用nginx( for windows)发布,静态文件、页面、接口需在同一端口下发布,或许可以尝试使用代理方式实现(可能会非常麻烦,不建议尝试)

from stockvisualization.

returnfx avatar returnfx commented on May 27, 2024

其实比较麻烦在windows系统下,uwsgi安装不了

from stockvisualization.

1251240000 avatar 1251240000 commented on May 27, 2024

没有在windows上尝试过,不过runserver也可以配合nginx运行,本地调试可以达到一样的效果。再不济可以使用wsl搭建完整的环境进行部署。

from stockvisualization.

returnfx avatar returnfx commented on May 27, 2024

server {
listen 80;
server_name 当前域名;

    location /templates {
        root /项目目录/StockVisualization/; 
        index index.html;
    }
    location /static {
        alias /项目目录/StockVisualization/static/;
    }
    location / {
        proxy_pass http://127.0.0.1:8000;
    }
}

nginx用这个配置,把静态资源映用nginx跑起来,代理下接口就可以启动了,大佬,现在除了首页,其他的页面都还有问题,我看页面文件是有的,是里面的逻辑还没写完吗

from stockvisualization.

1251240000 avatar 1251240000 commented on May 27, 2024

是的,有时间可能会把坑填上

from stockvisualization.

xinmans avatar xinmans commented on May 27, 2024

linux docker版本有么?

from stockvisualization.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.