feat(deploy): 更新后端 API 域名并添加部署指南
- 将后端 API域名从 https://api.jiebanke.com 改为 https://webapi.jiebanke.com - 新增 CentOS 服务器部署指南和相关脚本 - 更新环境变量配置和 API 文档中的示例 URL
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
NODE_ENV=development
|
||||
|
||||
# API配置
|
||||
VITE_API_BASE_URL=https://api.jiebanke.com/api/v1
|
||||
VITE_API_BASE_URL=https://webapi.jiebanke.com/api/v1
|
||||
VITE_API_TIMEOUT=30000
|
||||
|
||||
# 功能开关
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
NODE_ENV=production
|
||||
|
||||
# API配置
|
||||
VITE_API_BASE_URL=https://api.jiebanke.com/api/v1
|
||||
VITE_API_BASE_URL=https://webapi.jiebanke.com/api/v1
|
||||
VITE_API_TIMEOUT=15000
|
||||
|
||||
# 功能开关
|
||||
|
||||
@@ -86,14 +86,14 @@ docker-compose up mysql redis rabbitmq
|
||||
**.env.development** (开发环境):
|
||||
```
|
||||
VITE_APP_TITLE=结伴客后台管理系统(开发)
|
||||
VITE_API_BASE_URL=https://api.jiebanke.com/api/v1
|
||||
VITE_API_BASE_URL=https://webapi.jiebanke.com/api/v1
|
||||
VITE_APP_VERSION=dev
|
||||
```
|
||||
|
||||
**.env.production** (生产环境):
|
||||
```
|
||||
VITE_APP_TITLE=结伴客后台管理系统
|
||||
VITE_API_BASE_URL=https://api.jiebanke.com
|
||||
VITE_API_BASE_URL=https://webapi.jiebanke.com
|
||||
VITE_APP_VERSION=v1.0.0
|
||||
```
|
||||
|
||||
@@ -131,7 +131,7 @@ environment:
|
||||
|
||||
系统提供健康检查端点:
|
||||
- 前端: `https://admin.jiebanke.com/health`
|
||||
- 后端: `https://api.jiebanke.com/health`
|
||||
- 后端: `https://webapi.jiebanke.com/health`
|
||||
|
||||
## 监控和日志
|
||||
|
||||
|
||||
@@ -45,14 +45,14 @@ npm run preview
|
||||
### 开发环境 (.env.development)
|
||||
```env
|
||||
NODE_ENV=development
|
||||
VITE_API_BASE_URL=https://api.jiebanke.com/api/v1
|
||||
VITE_API_BASE_URL=https://webapi.jiebanke.com/api/v1
|
||||
VITE_FEATURE_DEBUG=true
|
||||
```
|
||||
|
||||
### 生产环境 (.env.production)
|
||||
```env
|
||||
NODE_ENV=production
|
||||
VITE_API_BASE_URL=https://api.jiebanke.com/api/v1
|
||||
VITE_API_BASE_URL=https://webapi.jiebanke.com/api/v1
|
||||
VITE_FEATURE_DEBUG=false
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user