Comments (5)
谢谢大佬,我弄好了呢
from chaoxing-sign-ui.
这个ui界面所有的依赖安装之后70多mb,我本地可以运行起来,一到服务器就出现负载拉满cpu堵塞,这个对服务器要求高吗,我的是2h2g的,麻烦告诉一下
要求不高,是不是在服务器运行npm start了,这样是启动开发服务器,不应该这样。应该在本地运行npm run build,把构建生成的静态网页,部署在Nginx或者用其他的你想用的
from chaoxing-sign-ui.
好像还是有问题呢,这个我属实不懂react,这个build之后会生成一个build文件夹,但是部署静态网站的时候只需要上传build文件夹里面的内容吗,还是说其他的所有的文件夹,包括src等的文件都需要上传呢,我总是出问题,部署之后可以打开界面,但是添加不了账号,我怀疑就是文件应该全部上传,但是上传之后也是打不开,php版本我选择的纯静态
from chaoxing-sign-ui.
好像还是有问题呢,这个我属实不懂react,这个build之后会生成一个build文件夹,但是部署静态网站的时候只需要上传build文件夹里面的内容吗,还是说其他的所有的文件夹,包括src等的文件都需要上传呢,我总是出问题,部署之后可以打开界面,但是添加不了账号,我怀疑就是文件应该全部上传,但是上传之后也是打不开,php版本我选择的纯静态
只需要上传build文件夹里的东西,如果用Nginx,就放在他的默认网页目录下
from chaoxing-sign-ui.
接口地址也应该改为服务器的IP+端口号
from chaoxing-sign-ui.
Related Issues (20)
- 移动端适配问题 HOT 2
- “确认添加”点不动 HOT 1
- 你好作者,我想请教一下身份过期和守护进程的问题 HOT 1
- node版本需要>=14.0.0 HOT 1
- 额,这个问题大吗,运行yarn install,安装到第三步的时候 HOT 2
- ui界面能出个教程么 HOT 2
- 静态网站部署与云函数接口搭配使用 HOT 11
- [Help] 本地yarn start可以运行,但部署到腾讯云托管无法添加账号 HOT 2
- 点击确认添加账号后404 HOT 13
- 构建时报错 HOT 2
- 点击未监听后始终处于加载中 HOT 4
- 大佬点击没反应 HOT 1
- 部署后打开一片空白 HOT 4
- 关于服务端的api HOT 2
- api.ts内不含baseUrl,之前搭建时正常 HOT 2
- UI界面登陆卡片名字显示错误 HOT 13
- 添加账号失败 HOT 6
- 无法添加账号 HOT 6
- 无法添加账号 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaoxing-sign-ui.