Files
stechuhr3/.deployment-info

100 lines
2.2 KiB
Plaintext

# TimeClock v3 - Deployment Information
## Deine Konfiguration
- **Domain:** stechuhr3.tsschulz.de
- **Webserver:** Apache2
- **Backend Port:** 3010
- **Process Manager:** PM2 (empfohlen) oder systemd
- **SSL:** Let's Encrypt (Certbot)
- **Database:** MySQL (tsschulz.de:3306/stechuhr2)
## Wichtige Dateien
### Für Apache2 Deployment
- `apache2.conf` - Apache VirtualHost Konfiguration
- `APACHE2_DEPLOYMENT.md` - Detaillierte Apache2-Anleitung
- `deploy.sh` - Automatisches Deployment (auf apache2 konfiguriert)
### Allgemein
- `DEPLOYMENT.md` - Vollständige Deployment-Dokumentation
- `QUICKSTART_DEPLOYMENT.md` - Schnellstart-Guide
- `backend/env.production.template` - Environment-Template
## Schnellstart
```bash
# Auf Server:
cd /var/www/timeclock
./deploy.sh install
```
Das Script ist bereits für Apache2 konfiguriert (Zeile 45: WEBSERVER="apache2").
## Apache2-spezifische Befehle
```bash
# Site aktivieren
sudo a2ensite stechuhr3.tsschulz.de
# Apache testen
sudo apache2ctl configtest
# Apache neuladen
sudo systemctl reload apache2
# Logs ansehen
sudo tail -f /var/log/apache2/stechuhr3-*.log
# Modul aktivieren (falls benötigt)
sudo a2enmod proxy proxy_http ssl rewrite headers
```
## Benötigte Apache2-Module
Diese Module müssen aktiviert sein:
- proxy
- proxy_http
- ssl
- rewrite
- headers
- deflate
- expires
Aktivieren mit:
```bash
sudo a2enmod proxy proxy_http ssl rewrite headers deflate expires
sudo systemctl restart apache2
```
## SSL-Zertifikat erstellen
```bash
# Certbot für Apache
sudo apt install certbot python3-certbot-apache
# Zertifikat erstellen
sudo certbot --apache -d stechuhr3.tsschulz.de
```
## Nach dem Deployment
✅ Frontend: https://stechuhr3.tsschulz.de
✅ API Health: https://stechuhr3.tsschulz.de/api/health
✅ Backend läuft auf: http://localhost:3010
## Dokumentation
- Vollständige Anleitung: `DEPLOYMENT.md`
- Apache2-spezifisch: `APACHE2_DEPLOYMENT.md`
- Schnellstart: `QUICKSTART_DEPLOYMENT.md`
- Scripts: `scripts/README.md`
## Support & Troubleshooting
Bei Problemen siehe:
1. `APACHE2_DEPLOYMENT.md` - Troubleshooting-Sektion
2. Apache-Logs: `/var/log/apache2/stechuhr3-*.log`
3. Backend-Logs: `pm2 logs timeclock-backend`