chore(config): 更新端口配置从3001到3010

- 将 .env.example 中的 PORT 从 3001 更改为 3010
- 将 CORS_ORIGIN 从 http://localhost:5173 更改为 http://localhost:5180
- 更新 compose.yaml 中的服务端口和健康检查端口为 3010
- 修改 Dockerfile 中暴露的端口为 3010
- 更新文档中的 API 端口引用从 3001 到 3010
- 在 Vite 配置中设置开发服务器端口为 5180
- 更新 Vite 代理目标地址为 http://localhost:3010
This commit is contained in:
yuzhe
2026-07-21 17:13:08 +08:00
parent b0c498fbb6
commit b42f46c182
8 changed files with 21 additions and 21 deletions

View File

@@ -5,7 +5,7 @@
| 变量 | 必需 | 说明 |
|---|---|---|
| `NODE_ENV` | 是 | 正式环境设为 `production` |
| `PORT` | 否 | API 与生产静态站端口,默认 `3001` |
| `PORT` | 否 | API 与生产静态站端口,默认 `3010` |
| `DATABASE_URL` | 正式环境 | PostgreSQL 连接串;缺省时使用 SQLite |
| `PGSSL` | 否 | 内网 PostgreSQL 可设为 `disable` |
| `PG_POOL_MAX` | 否 | 连接池上限,默认 `10` |
@@ -31,7 +31,7 @@ docker compose up -d --build
## 冒烟检查
```bash
curl http://127.0.0.1:3001/api/health
curl http://127.0.0.1:3010/api/health
docker compose ps
docker compose logs --tail=100 app
```
@@ -67,4 +67,3 @@ pnpm test:postgres-runtime
```
正式切换前还应验证管理员首次改密、客户访问门禁、COS 上传、客户批注与验收、数据库备份及 HTTPS Cookie。