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.
This commit is contained in:
Chenwei Jiang 2025-08-21 14:56:53 +08:00
parent 31801d0991
commit 2bf49537f8
Signed by: cheverjohn
GPG key ID: ADC4815BFE960182
3 changed files with 7 additions and 7 deletions

View file

@ -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 <PID>

View file

@ -47,7 +47,7 @@ npm install
npm run dev
```
开发服务器将在 `http://localhost:5173` 启动,支持热重载。
开发服务器将在 `http://localhost:3003` 启动,支持热重载。
### 生产环境部署

View file

@ -29,7 +29,7 @@
```
2. **访问应用**
- 打开浏览器访问 `http://localhost:5173`
- 打开浏览器访问 `http://localhost:3003`
- 应用会自动加载示例数据
3. **开始使用**