fix readme
This commit is contained in:
parent
f436ff5c17
commit
83690ce049
26
README.md
26
README.md
@ -110,3 +110,29 @@ npx update-browserslist-db@latest
|
||||
```
|
||||
## 4. 在浏览器中打开主页,localhost:8080, 默认用户名密码为:admin/123
|
||||
|
||||
# 前端nginx启动
|
||||
|
||||
## 1.执行build
|
||||
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm run build
|
||||
|
||||
出现错误的执行
|
||||
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm install babel-plugin-transform-remove-console --save-dev
|
||||
|
||||
出现版本node.js太大问题
|
||||
1.降低版本
|
||||
2."scripts": {
|
||||
"serve": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
|
||||
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
|
||||
"lint": "vue-cli-service lint"
|
||||
}
|
||||
|
||||
## 2. 拷贝resource目录中的dt-sdk到node-modules目录
|
||||
|
||||
## 3.继续build
|
||||
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm run build
|
||||
|
||||
## 4.然后到nginx-conf目录下修改配置文件nginx.conf的启动路径
|
||||
root "D:/IdeaProjects/skyeyesystem/frontend/Skyeye-sys-ui/dist";
|
||||
|
||||
## 5.回到nginx目录下cmd 执行.\nginx.exe
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user