From 2bf49537f8a073822f036c409b4db2e94689b953 Mon Sep 17 00:00:00 2001 From: Chever John Date: Thu, 21 Aug 2025 14:56:53 +0800 Subject: [PATCH] Fixes incorrect development server port Updates the development server port from 5173 to 3003. The documentation and configuration files incorrectly specified port 5173 for the development server. This caused confusion and prevented users from accessing the application at the correct address. The port is updated in `DEPLOYMENT.md`, `README.md`, `USER_GUIDE.md` and `vite.config.ts` to ensure consistency and proper access to the development server on port 3003. --- DEPLOYMENT.md | 10 +++++----- README.md | 2 +- USER_GUIDE.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 8eeb0b0..7008f6f 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -45,8 +45,8 @@ make preview # 本地预览测试 ``` 4. **访问应用** - - 开发服务器: http://localhost:5173 - - 网络访问: http://[你的IP]:5173 + - 开发服务器: http://localhost:3003 + - 网络访问: http://[你的IP]:3003 ### 开发环境配置 @@ -55,11 +55,11 @@ make preview # 本地预览测试 // vite.config.ts 关键配置 export default defineConfig({ server: { - port: 5173, // 开发服务器端口 + port: 3003, // 开发服务器端口 host: true, // 允许外部访问 open: true, // 自动打开浏览器 hmr: { - port: 5173 // 热重载端口 + port: 3003 // 热重载端口 } } }) @@ -373,7 +373,7 @@ server { 3. **端口冲突** ```bash # 检查端口占用 - lsof -i :5173 + lsof -i :3003 # 杀死进程 kill -9 diff --git a/README.md b/README.md index 7ddb3a3..501af98 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ npm install npm run dev ``` -开发服务器将在 `http://localhost:5173` 启动,支持热重载。 +开发服务器将在 `http://localhost:3003` 启动,支持热重载。 ### 生产环境部署 diff --git a/USER_GUIDE.md b/USER_GUIDE.md index 0ceb5f0..5f8294b 100644 --- a/USER_GUIDE.md +++ b/USER_GUIDE.md @@ -29,7 +29,7 @@ ``` 2. **访问应用** - - 打开浏览器访问 `http://localhost:5173` + - 打开浏览器访问 `http://localhost:3003` - 应用会自动加载示例数据 3. **开始使用**