61 lines
1.8 KiB
Markdown
61 lines
1.8 KiB
Markdown
# Deployment-Dokumentation
|
|
|
|
Diese Dokumentation beschreibt alle Aspekte des Deployments für E-Mail-Sorter.
|
|
|
|
## 📚 Inhaltsverzeichnis
|
|
|
|
### Automatisches Deployment
|
|
|
|
- **[Gitea Webhook Setup](./GITEA_WEBHOOK_SETUP.md)** - Vollständige Anleitung für automatisches Deployment via Gitea Webhook
|
|
- **[Webhook Quick Start](./WEBHOOK_QUICK_START.md)** - Schnellstart-Anleitung (5 Minuten)
|
|
- **[Webhook Authorization](./WEBHOOK_AUTHORIZATION.md)** - Authentifizierung und Sicherheit
|
|
|
|
### Manuelles Deployment
|
|
|
|
- **[Deployment Instructions](./DEPLOYMENT_INSTRUCTIONS.md)** - Manuelle Deployment-Schritte
|
|
- **[Production Setup](./PRODUCTION_SETUP.md)** - Production-Server Setup
|
|
- **[Production Fixes](./PRODUCTION_FIXES.md)** - Bekannte Probleme und Lösungen
|
|
|
|
## 🚀 Schnellstart
|
|
|
|
Für automatisches Deployment siehe [Webhook Quick Start](./WEBHOOK_QUICK_START.md).
|
|
|
|
## 📋 Übersicht
|
|
|
|
### Automatisches Deployment (Empfohlen)
|
|
|
|
1. **Gitea Webhook einrichten** → Siehe [GITEA_WEBHOOK_SETUP.md](./GITEA_WEBHOOK_SETUP.md)
|
|
2. **Bei jedem Push** wird automatisch deployed
|
|
3. **Keine manuellen Schritte** nötig
|
|
|
|
### Manuelles Deployment
|
|
|
|
1. **Frontend bauen:** `cd client && npm run build`
|
|
2. **Dateien hochladen** auf Server
|
|
3. **Backend neustarten** (falls nötig)
|
|
|
|
Siehe [DEPLOYMENT_INSTRUCTIONS.md](./DEPLOYMENT_INSTRUCTIONS.md) für Details.
|
|
|
|
## 🔧 Konfiguration
|
|
|
|
Alle Deployment-Konfigurationen finden sich in `server/.env`:
|
|
|
|
```bash
|
|
# Webhook-Konfiguration
|
|
GITEA_WEBHOOK_SECRET=...
|
|
GITEA_WEBHOOK_AUTH_TOKEN=...
|
|
|
|
# Server-Deployment
|
|
DEPLOY_SERVER_HOST=91.99.156.85
|
|
DEPLOY_SERVER_USER=root
|
|
DEPLOY_SERVER_PATH=/var/www/emailsorter
|
|
USE_PM2=true
|
|
```
|
|
|
|
## 📞 Support
|
|
|
|
Bei Problemen:
|
|
1. Prüfe die Server-Logs
|
|
2. Siehe [Production Fixes](./PRODUCTION_FIXES.md)
|
|
3. Prüfe Webhook Delivery Logs in Gitea
|