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:
parent
31801d0991
commit
2bf49537f8
3 changed files with 7 additions and 7 deletions
|
|
@ -45,8 +45,8 @@ make preview # 本地预览测试
|
||||||
```
|
```
|
||||||
|
|
||||||
4. **访问应用**
|
4. **访问应用**
|
||||||
- 开发服务器: http://localhost:5173
|
- 开发服务器: http://localhost:3003
|
||||||
- 网络访问: http://[你的IP]:5173
|
- 网络访问: http://[你的IP]:3003
|
||||||
|
|
||||||
### 开发环境配置
|
### 开发环境配置
|
||||||
|
|
||||||
|
|
@ -55,11 +55,11 @@ make preview # 本地预览测试
|
||||||
// vite.config.ts 关键配置
|
// vite.config.ts 关键配置
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
port: 5173, // 开发服务器端口
|
port: 3003, // 开发服务器端口
|
||||||
host: true, // 允许外部访问
|
host: true, // 允许外部访问
|
||||||
open: true, // 自动打开浏览器
|
open: true, // 自动打开浏览器
|
||||||
hmr: {
|
hmr: {
|
||||||
port: 5173 // 热重载端口
|
port: 3003 // 热重载端口
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -373,7 +373,7 @@ server {
|
||||||
3. **端口冲突**
|
3. **端口冲突**
|
||||||
```bash
|
```bash
|
||||||
# 检查端口占用
|
# 检查端口占用
|
||||||
lsof -i :5173
|
lsof -i :3003
|
||||||
|
|
||||||
# 杀死进程
|
# 杀死进程
|
||||||
kill -9 <PID>
|
kill -9 <PID>
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ npm install
|
||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
开发服务器将在 `http://localhost:5173` 启动,支持热重载。
|
开发服务器将在 `http://localhost:3003` 启动,支持热重载。
|
||||||
|
|
||||||
### 生产环境部署
|
### 生产环境部署
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **访问应用**
|
2. **访问应用**
|
||||||
- 打开浏览器访问 `http://localhost:5173`
|
- 打开浏览器访问 `http://localhost:3003`
|
||||||
- 应用会自动加载示例数据
|
- 应用会自动加载示例数据
|
||||||
|
|
||||||
3. **开始使用**
|
3. **开始使用**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue