mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
Update upgrade guide: add stop server step and rename section (#11654)
### What problem does this PR solve? Update upgrade guide: add stop server step and rename section ### Type of change - [x] Documentation Update
This commit is contained in:
@ -19,48 +19,60 @@ Upgrading RAGFlow in itself will *not* remove your uploaded/historical data. How
|
|||||||
|
|
||||||
To upgrade RAGFlow, you must upgrade **both** your code **and** your Docker image:
|
To upgrade RAGFlow, you must upgrade **both** your code **and** your Docker image:
|
||||||
|
|
||||||
1. Clone the repo
|
1. Stop the server
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/infiniflow/ragflow.git
|
docker compose -f docker/docker-compose.yml down
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Update **ragflow/docker/.env**:
|
2. Update the local code
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git pull
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Update **ragflow/docker/.env**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
RAGFLOW_IMAGE=infiniflow/ragflow:nightly
|
RAGFLOW_IMAGE=infiniflow/ragflow:nightly
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Update RAGFlow image and restart RAGFlow:
|
4. Update RAGFlow image and restart RAGFlow:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker/docker-compose.yml pull
|
docker compose -f docker/docker-compose.yml pull
|
||||||
docker compose -f docker/docker-compose.yml up -d
|
docker compose -f docker/docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## Upgrade RAGFlow to the most recent, officially published release
|
## Upgrade RAGFlow to given release
|
||||||
|
|
||||||
To upgrade RAGFlow, you must upgrade **both** your code **and** your Docker image:
|
To upgrade RAGFlow, you must upgrade **both** your code **and** your Docker image:
|
||||||
|
|
||||||
1. Clone the repo
|
1. Stop the server
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/infiniflow/ragflow.git
|
docker compose -f docker/docker-compose.yml down
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Switch to the latest, officially published release, e.g., `v0.22.1`:
|
2. Update the local code
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git pull
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Switch to the latest, officially published release, e.g., `v0.22.1`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git checkout -f v0.22.1
|
git checkout -f v0.22.1
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Update **ragflow/docker/.env**:
|
4. Update **ragflow/docker/.env**:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
RAGFLOW_IMAGE=infiniflow/ragflow:v0.22.1
|
RAGFLOW_IMAGE=infiniflow/ragflow:v0.22.1
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Update the RAGFlow image and restart RAGFlow:
|
5. Update the RAGFlow image and restart RAGFlow:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker/docker-compose.yml pull
|
docker compose -f docker/docker-compose.yml pull
|
||||||
|
|||||||
Reference in New Issue
Block a user