调整更新文档,不要挂载持久化 (#1075)

* fix: plugin update

* feat: get current time plugin

* fix: ts

* perf: select app ux

* fix: ts

* perf: max w

* perf: inform tip

* fix: inform

* remove deploy doc
This commit is contained in:
Archer
2024-03-27 13:47:16 +08:00
committed by GitHub
parent 6b7b03c245
commit 9e193b16a1
2 changed files with 5 additions and 37 deletions

View File

@@ -11,39 +11,7 @@ weight: 826
增加一些 Boolean 值,用于决定不同功能块可以使用哪些模型,同时增加了模型的 logo[点击查看最新的配置文件](/docs/development/configuration/)
## 2. Docker 部署的用户, 修改 docker-compose.yml 文件
在 fastgpt 容器中,挂在一个目录,用于存储临时文件(文件上传时候)。可以参考最新的 [docker-compose.yml](https://raw.githubusercontent.com/labring/FastGPT/main/files/deploy/fastgpt/docker-compose.yml)
```yaml
......
fastgpt:
......
volumes:
- ./config.json:/app/data/config.json
- ./fastgpt/tmp:/app/tmp
......
```
## 2. Sealos 部署的用户,挂载存储券
| Step1 | Step 2 | Step3 |
| --- | --- | --- |
| ![](/imgs/47-sealos1.png) | ![](/imgs/47-sealos2.png) | ![](/imgs/47-sealos3.png) |
| Step4 | Step 5 | |
| ![](/imgs/47-sealos4.webp) | ![](/imgs/47-sealos5.png) | 完工,检查下应用状态 |
命令如下:
```bash
kubectl patch statefulset {{这里改成第一步的应用名}} -p '{"spec":{"template":{"spec":{"securityContext":{"fsGroup": 1001, "fsGroupChangePolicy": "Always"}}}}}'
# 例如下面的
# kubectl patch statefulset fastgpt-test -p '{"spec":{"template":{"spec":{"securityContext":{"fsGroup": 1001, "fsGroupChangePolicy": "Always"}}}}}'
```
## 3. 初始化脚本
## 2. 初始化脚本
升级完镜像后。从任意终端,发起 1 个 HTTP 请求。其中 {{rootkey}} 替换成环境变量里的 `rootkey`{{host}} 替换成自己域名
@@ -56,7 +24,7 @@ curl --location --request POST 'https://{{host}}/api/admin/initv47' \
脚本功能:
1. 初始化插件的 parentId
## 4. 升级 ReRank 模型
## 3. 升级 ReRank 模型
4.7对ReRank模型进行了格式变动兼容 cohere 的格式,可以直接使用 cohere 提供的 API。如果是本地的 ReRank 模型,需要修改镜像为:`luanshaotong/reranker:v0.2`