Files
daily_publish/deploy/README.md
T

45 lines
979 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 部署说明
## 快速打包
```powershell
powershell -File deploy/package.ps1
```
生成 `deploy/publish_deploy.zip`,解压到 `/usr/local/publish_dishboard/` 自动对齐目录。
## 目录结构
解压后:
```
/usr/local/publish_dishboard/
frontend/
index.html ← 前端入口
server.js ← Node.js 静态文件服务
assets/ ← JS/CSS 等静态资源
app.jar ← 后端 Spring Boot JAR
```
## 服务端口
| 服务 | 端口 | 说明 |
|--------|-------|------------------------|
| 前端 | 30080 | Node.js (`server.js`) |
| 后端 | 30081 | Java (`app.jar`) |
## Nginx 路由配置
```
location /publish_dishboard/ {
proxy_pass http://127.0.0.1:30080/;
}
location /publish_server/ {
proxy_pass http://127.0.0.1:30081/;
}
```
## 前端资源路径
前端构建使用 `router basename = /publish_dishboard`Nginx 需确保 `/assets/` 路径可访问。