updated readme

This commit is contained in:
cpu
2025-05-09 12:32:39 +02:00
parent 0b2da6c3a2
commit befe36a356
2 changed files with 30 additions and 3 deletions

View File

@@ -168,10 +168,37 @@ View real-time logs
```bash
journalctl -fu virt-nexus-timer.service
```
# Test the web application
### Test the web application
Verify that the application is accessible via HTTPS:
```bash
curl https://nexus-timer.virtonline.eu
```
Or open it in your browser:
[https://nexus-timer.virtonline.eu](https://nexus-timer.virtonline.eu)
### Update the app
Make code changes...
Do not forget to change the cache version
```bash
ver=$(grep -oP "CACHE_VERSION = 'nexus-timer-cache-v\K[0-9]+" public/service-worker.js)
sed -i "s/nexus-timer-cache-v$ver/nexus-timer-cache-v$((ver+1))/" public/service-worker.js
```
Commit and push the code changes
```bash
git commit -m 'fixed visuals'
git push
```
### Release the update
Pull the changes on your server
```bash
git pull
```
Build the docker image and restart the service
```bash
docker build -t virt-nexus-timer . && systemctl restart virt-nexus-timer.service
```
View real-time logs
```bash
journalctl -fu virt-nexus-timer.service
```
The previously installed PWA should now offer an upgrade

View File

@@ -1,4 +1,4 @@
const CACHE_VERSION = 'nexus-timer-cache-v3.4';
const CACHE_VERSION = 'nexus-timer-cache-v4';
const APP_SHELL_URLS = [
// '/', // Let NetworkFirst handle '/'
'/manifest.json',