build: 将前后端端口迁移至 7380/7381

固定前端端口为 7380、后端端口为 7381,避开 3000/5173/8080
等常见开发端口,防止与同机其它工程互占。

- 更新根目录、backend、web 的 .env.example 与 README、Makefile 说明
- 同步 vite.config.ts、web/package.json、desktop/main.cjs 默认地址
- 同步 backend config.go 默认端口常量、Dockerfile 与 docker-compose 健康检查
- 同步 deploy/nginx.conf 监听与反代、Dockerfile.web 端口
- 后端新增 godotenv 加载 backend/.env,真实环境变量优先
- AGENTS.md 补充端口约定与按 PID 清理进程的强制规范
- 新增 preflight 脚本并在 pnpm dev 前执行
This commit is contained in:
tongtong committed 2026-09-21 13:32:14 +08:00
1 parent 943c0a0e5a
commit ae6cdf1551
19 files changed
+149 -35

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
server {
listen 3000;
listen 7380;
server_name _;
root /usr/share/nginx/html;
@@ -22,7 +22,7 @@ server {
# 后端 API
location /api/ {
proxy_pass http://api:8080;
proxy_pass http://api:7381;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;