StaySense/docs/wiki/Deployment.md

31 lines
712 B
Markdown

# Deployment
Zielplattform aktuell: Hetzner + CloudPanel + Nginx + systemd.
## Komponenten
- App-Code: `/opt/staysense`
- API-Service: `staysense-api.service`
- Import-Timer: `staysense-import.timer`
- Frontend-Root: `/home/staysense-site/htdocs/staysense.vanityontour.de/`
## Rollout (vereinfacht)
```bash
cd /opt/staysense
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
```
## Pflichtchecks
```bash
systemctl is-active staysense-api.service
curl -s -L https://staysense.vanityontour.de/api/health
```
## HTTPS
TLS-Zertifikate werden über CloudPanel verwaltet.