Add production build optimizations to Vite configuration; set target, output directory, and minification options for improved performance

This commit is contained in:
Torsten Schulz (local)
2025-10-18 21:19:07 +02:00
parent bda61c0ed4
commit 06a65e9130
16 changed files with 4210 additions and 1 deletions

59
.deployment-files Normal file
View File

@@ -0,0 +1,59 @@
# Deployment-Dateien für TimeClock v3
# Diese Datei listet alle für das Deployment relevanten Dateien auf
## Hauptdokumentation
- DEPLOYMENT.md # Vollständige Deployment-Anleitung
- QUICKSTART_DEPLOYMENT.md # Schnellstart-Guide
## Konfigurationsdateien
- nginx.conf # Nginx-Konfiguration für stechuhr3.tsschulz.de
- timeclock.service # Systemd-Service-Datei
- ecosystem.config.js # PM2-Konfiguration
- backend/env.production.template # Environment-Template
## Scripts
- deploy.sh # Automatisches Deployment-Script
## Verwendung
### Automatisches Deployment:
```bash
./deploy.sh install # Erste Installation
./deploy.sh update # Update
./deploy.sh backup # Backup
./deploy.sh status # Status
./deploy.sh logs # Logs
```
### Manuelle Installation:
Siehe DEPLOYMENT.md oder QUICKSTART_DEPLOYMENT.md
## Wichtige Pfade auf dem Server
- Projekt: /var/www/timeclock
- Backend: /var/www/timeclock/backend
- Frontend: /var/www/timeclock/frontend/dist
- Logs: /var/log/timeclock
- Backups: /var/backups/timeclock
- Nginx Config: /etc/nginx/sites-available/stechuhr3.tsschulz.de
- Systemd Service: /etc/systemd/system/timeclock.service
## Checkliste vor Deployment
- [ ] DNS A-Record für stechuhr3.tsschulz.de gesetzt
- [ ] MySQL/MariaDB läuft
- [ ] Datenbank und User erstellt
- [ ] .env Datei auf Server angepasst
- [ ] JWT_SECRET und SESSION_SECRET generiert
- [ ] E-Mail-Konfiguration angepasst (falls verwendet)
- [ ] OAuth-Credentials erstellt (falls verwendet)
## Nach dem Deployment prüfen
- [ ] https://stechuhr3.tsschulz.de erreichbar
- [ ] https://stechuhr3.tsschulz.de/api/health zeigt "ok"
- [ ] Login funktioniert
- [ ] SSL-Zertifikat gültig
- [ ] Backend-Logs ohne Fehler
- [ ] Nginx-Logs ohne Fehler