diff --git a/README.md b/README.md index 7281c80..4410373 100644 --- a/README.md +++ b/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 +