updated readme
This commit is contained in:
31
README.md
31
README.md
@@ -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)
|
||||
[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
|
||||
Reference in New Issue
Block a user