Add update instructions for Endurain service

Added instructions for updating to a new version of Endurain, including steps for stopping the service, removing old files, downloading the latest release, building the frontend, setting up the backend, and starting the service.
This commit is contained in:
FutureCow
2025-12-20 10:50:27 +01:00
committed by GitHub
parent 39a01eca05
commit 563f55211b

View File

@@ -168,3 +168,46 @@ systemctl daemon-reload
systemctl enable endurain
systemctl start endurain
```
## 9. Update to a new version of Endurain.
Remove old version and get the latest.
```bash
systemctl stop endurain
rm -rf /path/to/endurain/*
cd /path/to/endurain
TAG=$(curl -s https://api.github.com/repos/endurain-project/endurain/releases/latest \
| grep -oP '"tag_name": "\K(.*)(?=")')
curl -L "https://github.com/endurain-project/endurain/archive/refs/tags/$TAG.tar.gz" \
| tar xz
EXTRACTED=$(ls -d endurain-*)
shopt -s dotglob
mv "$EXTRACTED"/* .
shopt -u dotglob
rm -rf "$EXTRACTED"
```
Build the Frontend.
```bash
cd /path/to/endurain/frontend/app
npm ci
npm run build
```
Set Up the Backend.
```bash
cd /path/to/endurain/backend
poetry export -f requirements.txt --output requirements.txt --without-hashes
uv venv
uv pip install -r requirements.txt
```
start the service.
```bash
systemctl start endurain
```