This commit is contained in:
glidea
2025-04-23 19:15:31 +08:00
parent 57112b916b
commit 9026a08298
6 changed files with 70 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

View File

@@ -0,0 +1,28 @@
## 0. Check your current version
```bash
# Mac/Linux
docker inspect glidea/zenfeed:latest | grep version
# Windows PowerShell
docker inspect glidea/zenfeed:latest | Select-String -Pattern 'version'
```
If you **don't see any results**, it means you're using version v0.1.0. This is because the first version didn't include version information. Therefore, **this document applies to you.**
## 1. Move your data to the correct volume path
```bash
docker-compose -p zenfeed exec zenfeed cp -a /data/. /app/data/
```
## 2. Backup your config
Access: http://localhost:1400
![](images/upgrade-from-v0.1.0-backup.png)
## 3. Upgrade
See [upgrade](./upgrade.md)
## 4. Resave your config
Access: http://localhost:1400
Resave your config.
These tedious steps are due to the oversight in the deployment form of the first version, and I apologize for that. Subsequent versions will not require these extra steps.

19
docs/upgrade.md Normal file
View File

@@ -0,0 +1,19 @@
**NOTE:** If you are upgrading from v0.1.0, which is the first version, please refer to [upgrade-from-v0.1.0.md](./upgrade-from-v0.1.0.md)
```bash
# Ensure compose yml up to date.
## Mac/Linux
curl -L -O https://raw.githubusercontent.com/glidea/zenfeed/main/docker-compose.yml
## Windows PowerShell
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/glidea/zenfeed/main/docker-compose.yml" -OutFile ([System.IO.Path]::GetFileName("https://raw.githubusercontent.com/glidea/zenfeed/main/docker-compose.yml"))
# Ensure images up to date.
docker-compose -p zenfeed pull
# Upgrading without reconfiguring, etc APIKey.
docker-compose -p zenfeed up -d
```
Then all the feed data and configurations should be intact.