Coder Social home page Coder Social logo

Comments (5)

LeonardoNorskog avatar LeonardoNorskog commented on July 17, 2024 1

谢谢大佬,我弄好了呢

from chaoxing-sign-ui.

cxOrz avatar cxOrz commented on July 17, 2024

这个ui界面所有的依赖安装之后70多mb,我本地可以运行起来,一到服务器就出现负载拉满cpu堵塞,这个对服务器要求高吗,我的是2h2g的,麻烦告诉一下

要求不高,是不是在服务器运行npm start了,这样是启动开发服务器,不应该这样。应该在本地运行npm run build,把构建生成的静态网页,部署在Nginx或者用其他的你想用的

from chaoxing-sign-ui.

LeonardoNorskog avatar LeonardoNorskog commented on July 17, 2024

好像还是有问题呢,这个我属实不懂react,这个build之后会生成一个build文件夹,但是部署静态网站的时候只需要上传build文件夹里面的内容吗,还是说其他的所有的文件夹,包括src等的文件都需要上传呢,我总是出问题,部署之后可以打开界面,但是添加不了账号,我怀疑就是文件应该全部上传,但是上传之后也是打不开,php版本我选择的纯静态

from chaoxing-sign-ui.

cxOrz avatar cxOrz commented on July 17, 2024

好像还是有问题呢,这个我属实不懂react,这个build之后会生成一个build文件夹,但是部署静态网站的时候只需要上传build文件夹里面的内容吗,还是说其他的所有的文件夹,包括src等的文件都需要上传呢,我总是出问题,部署之后可以打开界面,但是添加不了账号,我怀疑就是文件应该全部上传,但是上传之后也是打不开,php版本我选择的纯静态

只需要上传build文件夹里的东西,如果用Nginx,就放在他的默认网页目录下

from chaoxing-sign-ui.

cxOrz avatar cxOrz commented on July 17, 2024

接口地址也应该改为服务器的IP+端口号

from chaoxing-sign-ui.

Related Issues (20)

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.