fix: Update frontend and backend URLs to new ports

This commit is contained in:
Peifan Li
2025-03-20 22:50:00 -04:00
parent d01cd7f793
commit 15d71f546e
2 changed files with 12 additions and 12 deletions

View File

@@ -82,8 +82,8 @@ npm run build # 为生产环境构建前端
### 访问应用
- 前端http://localhost:3000
- 后端 APIhttp://localhost:5000
- 前端http://localhost:5556
- 后端 APIhttp://localhost:5551
## API 端点
@@ -125,15 +125,15 @@ MyTube 允许您将视频整理到收藏夹中:
### 前端frontend 目录中的 .env 文件)
```
VITE_API_URL=http://localhost:5000/api
VITE_BACKEND_URL=http://localhost:5000
VITE_APP_PORT=3000
VITE_API_URL=http://localhost:5551/api
VITE_BACKEND_URL=http://localhost:5551
VITE_APP_PORT=5556
```
### 后端backend 目录中的 .env 文件)
```
PORT=5000
PORT=5551
UPLOAD_DIR=uploads
VIDEO_DIR=uploads/videos
IMAGE_DIR=uploads/images

View File

@@ -82,8 +82,8 @@ npm run build # Build the frontend for production
### Accessing the Application
- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
- Frontend: http://localhost:5556
- Backend API: http://localhost:5551
## API Endpoints
@@ -125,15 +125,15 @@ The application uses environment variables for configuration. Here's how to set
### Frontend (.env file in frontend directory)
```
VITE_API_URL=http://localhost:5000/api
VITE_BACKEND_URL=http://localhost:5000
VITE_APP_PORT=3000
VITE_API_URL=http://localhost:5551/api
VITE_BACKEND_URL=http://localhost:5551
VITE_APP_PORT=5556
```
### Backend (.env file in backend directory)
```
PORT=5000
PORT=5551
UPLOAD_DIR=uploads
VIDEO_DIR=uploads/videos
IMAGE_DIR=uploads/images