Add Linux deploy script

This commit is contained in:
2026-05-05 01:27:48 +02:00
parent ba9536de12
commit 2be1fc599a
2 changed files with 116 additions and 0 deletions

View File

@@ -190,6 +190,16 @@ VS Code launch profiles in `.vscode/launch.json`:
- `RpgRoller: Server + Edge (F5)`
- `RpgRoller: Server + Firefox (F5)`
## Deployment
Deploy to the Linux server with:
```bash
bash ./scripts/deploy.sh
```
The script publishes the app locally, uploads a release to `/root/docker/rpgroller/releases/<UTC timestamp>`, updates `/root/docker/rpgroller/current`, rebuilds the `rpgroller` image, and recreates the `rpgroller` container. The SQLite database is preserved because the container keeps using the existing bind mount at `/root/docker/rpgroller/data`.
Environment overrides:
- Set `ConnectionStrings__RpgRoller` to point at a custom SQLite database.