fix: 修复用户管理系统源码运行时host问题
This commit is contained in:
parent
0dabf1bc7a
commit
d6c98e440f
38
README.md
38
README.md
|
@ -21,7 +21,7 @@ Ragflow-Plus,该名字不是说比 Ragflow 项目牛的意思,而是对标 D
|
|||
|
||||
## 使用方式
|
||||
|
||||
### 前端文件替换
|
||||
### 1. 前端文件替换
|
||||
|
||||
1. 克隆项目
|
||||
```bash
|
||||
|
@ -45,7 +45,9 @@ rm -rf /ragflow/web/dist
|
|||
docker cp dist ragflow-server:/ragflow/web/
|
||||
```
|
||||
|
||||
### 管理系统运行方式
|
||||
### 2. 管理系统运行方式
|
||||
|
||||
#### 2.1 使用Docker Compose运行
|
||||
|
||||
```bash
|
||||
docker compose -f management/docker-compose.yml up -d
|
||||
|
@ -53,6 +55,36 @@ docker compose -f management/docker-compose.yml up -d
|
|||
|
||||
访问地址:`服务器ip:8080`,进入到管理界面
|
||||
|
||||
#### 2.2 源码运行
|
||||
|
||||
启动后端:
|
||||
|
||||
1.打开后端程序`management/server`,安装依赖
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
2.启动后端
|
||||
|
||||
```bash
|
||||
python app.py
|
||||
```
|
||||
|
||||
启动前端:
|
||||
|
||||
1.打开前端程序`management\web`,安装依赖
|
||||
```bash
|
||||
pnpm i
|
||||
```
|
||||
|
||||
2.启动前端程序
|
||||
```bash
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
浏览器访问启动后的地址,即可进入系统。
|
||||
|
||||
## Agent功能恢复
|
||||
|
||||
由于在我的应用场景中,不需要Agent功能,故隐藏了Agent按钮的入口,如需恢复Agent功能,可修改`web\src\layouts\components\header\index.tsx`,对以下内容取消注释:
|
||||
|
@ -66,7 +98,7 @@ docker compose -f management/docker-compose.yml up -d
|
|||
|
||||
## Todo List
|
||||
|
||||
- [x] 搭建用户后台管理
|
||||
- [x] 搭建用户后台管理系统
|
||||
|
||||
- [ ] 知识库批量上传解析
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@ from tabulate import tabulate
|
|||
|
||||
# 数据库连接配置
|
||||
db_config = {
|
||||
"host": "host.docker.internal",
|
||||
# "host": "host.docker.internal", 如果是在Docke容器内部访问数据库
|
||||
"host": "localhost",
|
||||
"port": 5455,
|
||||
"user": "root",
|
||||
"password": "infini_rag_flow",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# 开发环境的环境变量(命名必须以 VITE_ 开头)
|
||||
|
||||
## 后端接口地址(如果解决跨域问题采用反向代理就只需写相对路径)
|
||||
VITE_BASE_URL = /api
|
||||
VITE_BASE_URL = http://localhost:5000
|
||||
|
||||
## 开发环境域名和静态资源公共路径(一般 / 或 ./ 都可以)
|
||||
VITE_PUBLIC_PATH = /
|
||||
|
|
|
@ -8,7 +8,6 @@ export {}
|
|||
/* prettier-ignore */
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
ElAlert: typeof import('element-plus/es')['ElAlert']
|
||||
ElAside: typeof import('element-plus/es')['ElAside']
|
||||
ElAvatar: typeof import('element-plus/es')['ElAvatar']
|
||||
ElBacktop: typeof import('element-plus/es')['ElBacktop']
|
||||
|
@ -30,16 +29,12 @@ declare module 'vue' {
|
|||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||
ElHeader: typeof import('element-plus/es')['ElHeader']
|
||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||
ElImage: typeof import('element-plus/es')['ElImage']
|
||||
ElInput: typeof import('element-plus/es')['ElInput']
|
||||
ElLink: typeof import('element-plus/es')['ElLink']
|
||||
ElMain: typeof import('element-plus/es')['ElMain']
|
||||
ElMenu: typeof import('element-plus/es')['ElMenu']
|
||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||
ElPopover: typeof import('element-plus/es')['ElPopover']
|
||||
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
|
||||
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
|
||||
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
||||
|
@ -48,7 +43,6 @@ declare module 'vue' {
|
|||
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
||||
ElTabs: typeof import('element-plus/es')['ElTabs']
|
||||
ElTag: typeof import('element-plus/es')['ElTag']
|
||||
ElText: typeof import('element-plus/es')['ElText']
|
||||
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
|
|
Loading…
Reference in New Issue