mirror of
https://gitee.com/qqtt-ah/ai-crm.git
synced 2026-11-23 23:09:20 +08:00
feat: 调整本地开发端口为前端 5888、后端 8070
This commit is contained in:
@@ -22,7 +22,7 @@ deploy/ # 部署 TUI,流程见 deploy/MANUAL-DEPLOY.md
|
||||
- 测试 `./mvnw test`,单个 `./mvnw test -Dtest=RoleAspectTest`
|
||||
- 架构设计文档在 `docs/`(权限控制、开放接口、Agent/MCP 等),改动相关模块前先读
|
||||
- `.vscode/settings.json` 已关闭 Eclipse null analysis(MyBatis-Plus 方法引用误报),不要补 `@SuppressWarnings("null")`
|
||||
- 接口文档:启动后 http://localhost:8080/doc.html(knife4j)
|
||||
- 接口文档:启动后 http://localhost:8070/doc.html(knife4j)
|
||||
- Spring profile:dev / test / pre / prod;部署环境端口 8101 / 8102 / 8103(见 deploy/MANUAL-DEPLOY.md)
|
||||
- **保留模块**:`sys` / `org` / `sub` / `open`(API Key 框架)/ `notify` / `agent`(LLM 配置 + MCP 框架)
|
||||
- **Flyway**:启动自动执行 `src/main/resources/db/migration/`(空库先跑 `V1__baseline_schema.sql`);菜单/权限种子仍由 `SysInitRunner` + `sql/init/sys_seed.sql` 灌入
|
||||
|
||||
+3
-3
@@ -4,13 +4,13 @@
|
||||
JWT_SECRET=your-secret-key-here-must-be-at-least-64-bytes-long-for-hs512-algorithm-security
|
||||
MONGO_URI=mongodb://ai_crm_angent_dev:ai_crm_angent_dev@192.168.3.100:27017/?authSource=ai_crm_angent_dev
|
||||
MONGO_DB=ai_crm_angent_dev
|
||||
SERVER_BASE_URL=http://localhost:8080
|
||||
SERVER_BASE_URL=http://localhost:8070
|
||||
LLM_FALLBACK_ENABLED=true
|
||||
LLM_FALLBACK_BASE_URL=https://api.deepseek.com/v1
|
||||
LLM_FALLBACK_API_KEY=
|
||||
LLM_FALLBACK_MODEL=deepseek-chat
|
||||
CORS_ORIGINS=http://localhost:5173,http://localhost:5666
|
||||
MCP_BASE_URL=http://localhost:8080/mcp
|
||||
CORS_ORIGINS=http://localhost:5173,http://localhost:5888
|
||||
MCP_BASE_URL=http://localhost:8070/mcp
|
||||
MCP_BEARER_TOKEN=dev-agent-mcp-token
|
||||
MCP_TOOLS_ENABLED=true
|
||||
PORT=8200
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
JWT_SECRET=your-secret-key-here-must-be-at-least-64-bytes-long-for-hs512-algorithm-security
|
||||
MONGO_URI=mongodb://ai_crm_angent_dev:ai_crm_angent_dev@192.168.3.100:27017/?authSource=ai_crm_angent_dev
|
||||
MONGO_DB=ai_crm_angent_dev
|
||||
SERVER_BASE_URL=http://localhost:8080
|
||||
SERVER_BASE_URL=http://localhost:8070
|
||||
LLM_FALLBACK_ENABLED=true
|
||||
LLM_FALLBACK_BASE_URL=https://api.deepseek.com/v1
|
||||
LLM_FALLBACK_API_KEY=
|
||||
LLM_FALLBACK_MODEL=deepseek-chat
|
||||
CORS_ORIGINS=http://localhost:5173,http://localhost:5666
|
||||
CORS_ORIGINS=http://localhost:5173,http://localhost:5888
|
||||
# 须与同环境 Server ecom.agent.mcp.bearer-token / AGENT_MCP_TOKEN 一致;空则 MCP 工具整段跳过
|
||||
MCP_BASE_URL=http://localhost:8080/mcp
|
||||
MCP_BASE_URL=http://localhost:8070/mcp
|
||||
MCP_BEARER_TOKEN=dev-agent-mcp-token
|
||||
MCP_TOOLS_ENABLED=true
|
||||
|
||||
@@ -33,7 +33,7 @@ AI CRM 主后端
|
||||
或指定端口:
|
||||
|
||||
```bash
|
||||
./mvnw spring-boot:run -Dspring-boot.run.arguments="--server.port=8080"
|
||||
./mvnw spring-boot:run -Dspring-boot.run.arguments="--server.port=8070"
|
||||
```
|
||||
|
||||
## 项目结构
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 开发环境(本地默认 profile)
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
port: 8070
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
@@ -29,7 +29,7 @@ sys:
|
||||
# multipart 通过后端上传;direct 直接上传
|
||||
storage-type: oss
|
||||
upload-mode: direct
|
||||
access-domain: http://localhost:5666
|
||||
access-domain: http://localhost:5888
|
||||
|
||||
ecom:
|
||||
license:
|
||||
|
||||
Vendored
+1
-1
@@ -15,7 +15,7 @@
|
||||
"type": "chrome",
|
||||
"name": "vben admin antd dev",
|
||||
"request": "launch",
|
||||
"url": "http://localhost:5666",
|
||||
"url": "http://localhost:5888",
|
||||
"env": { "NODE_ENV": "development" },
|
||||
"sourceMaps": true,
|
||||
"webRoot": "${workspaceFolder}/apps/web-antd"
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ pnpm install
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
访问:http://localhost:5666
|
||||
访问:http://localhost:5888
|
||||
|
||||
## 构建生产版本
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 端口号
|
||||
VITE_PORT=5666
|
||||
VITE_PORT=5888
|
||||
|
||||
VITE_BASE=/
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ export default defineConfig(async () => {
|
||||
'/api': {
|
||||
changeOrigin: true,
|
||||
// 后端服务地址
|
||||
target: 'http://localhost:8080',
|
||||
target: 'http://localhost:8070',
|
||||
ws: true,
|
||||
// SSE 长连接:禁止代理空闲超时断开
|
||||
timeout: 0,
|
||||
@@ -62,7 +62,7 @@ export default defineConfig(async () => {
|
||||
// 静态资源代理 - 用于访问上传的图片和文件
|
||||
'/uploads': {
|
||||
changeOrigin: true,
|
||||
target: 'http://localhost:8080',
|
||||
target: 'http://localhost:8070',
|
||||
ws: false,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user