Harden API uptime with systemd ownership guard and watchdog
This commit is contained in:
parent
ab6ad85db7
commit
b089dc1639
10 changed files with 93 additions and 7 deletions
|
|
@ -7,6 +7,7 @@ Zielplattform aktuell: Hetzner + CloudPanel + Nginx + systemd.
|
|||
- App-Code: `/opt/staysense`
|
||||
- API-Service: `staysense-api.service`
|
||||
- Import-Timer: `staysense-import.timer`
|
||||
- API-Watchdog: `staysense-watchdog.timer`
|
||||
- Frontend-Root: `/home/staysense-site/htdocs/staysense.vanityontour.de/`
|
||||
|
||||
## Rollout (vereinfacht)
|
||||
|
|
@ -17,12 +18,14 @@ git pull --ff-only
|
|||
rsync -a --delete /opt/staysense/src/ /home/staysense-site/htdocs/staysense.vanityontour.de/
|
||||
systemctl restart staysense-api.service
|
||||
nginx -t && systemctl reload nginx
|
||||
systemctl restart staysense-watchdog.timer
|
||||
```
|
||||
|
||||
## Pflichtchecks
|
||||
|
||||
```bash
|
||||
systemctl is-active staysense-api.service
|
||||
systemctl is-active staysense-watchdog.timer
|
||||
curl -s -L https://staysense.vanityontour.de/api/health
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue