Die Dateien, die in diesem Commit geändert wurden, sind:
This commit is contained in:
@ -1 +1,95 @@
|
||||
|
||||
# MYP System - Häufige Fehler und Lösungen
|
||||
|
||||
## 🔧 CSS-Build-Probleme
|
||||
|
||||
### Problem: TailwindCSS Safelist-Warnungen
|
||||
```
|
||||
warn - The safelist pattern `/^hover:.*/` doesn't match any Tailwind CSS classes.
|
||||
```
|
||||
|
||||
**Lösung:**
|
||||
- Regex-Patterns in `tailwind.config.js` durch spezifische Klassennamen ersetzen
|
||||
- Statt `{ pattern: /^hover:.*/ }` verwende konkrete Klassen wie `'hover:bg-gray-100'`
|
||||
|
||||
### Problem: Node.js nicht gefunden (Windows)
|
||||
```
|
||||
Node.js nicht gefunden in /opt/myp
|
||||
```
|
||||
|
||||
**Lösung:**
|
||||
- Das ist ein Linux-spezifischer Test, der auf Windows nicht relevant ist
|
||||
- Node.js ist korrekt installiert und funktioniert
|
||||
- CSS-Build funktioniert: `npm run build:tailwind`
|
||||
|
||||
## 🐍 Python-Umgebung
|
||||
|
||||
### Problem: python3.11 nicht erkannt (Windows)
|
||||
```
|
||||
python3.11 : Die Benennung "python3.11" wurde nicht als Name eines Cmdlet erkannt
|
||||
```
|
||||
|
||||
**Lösung:**
|
||||
- Auf Windows verwende `python` statt `python3.11`
|
||||
- Das System erkennt automatisch die korrekte Python-Version
|
||||
|
||||
### Problem: Fehlende Dateien im Arbeitsverzeichnis
|
||||
```
|
||||
❌ app.py fehlt
|
||||
❌ models.py fehlt
|
||||
```
|
||||
|
||||
**Lösung:**
|
||||
- Script aus dem Backend-Verzeichnis ausführen: `python backend/start_development.py`
|
||||
- Oder ins Backend-Verzeichnis wechseln: `cd backend && python start_development.py`
|
||||
|
||||
## 🌐 System-Services
|
||||
|
||||
### Problem: Systemd-Services nicht verfügbar (Windows)
|
||||
```
|
||||
Service-Tests fehlgeschlagen (1 Fehler)
|
||||
```
|
||||
|
||||
**Lösung:**
|
||||
- Systemd ist Linux-spezifisch und auf Windows nicht verfügbar
|
||||
- Das MYP-System läuft trotzdem korrekt als Flask-Development-Server
|
||||
- Für Windows-Deployment andere Service-Manager verwenden (z.B. NSSM)
|
||||
|
||||
## ✅ Erfolgreiche Behebung
|
||||
|
||||
### Status nach Fehlerbehebung:
|
||||
- ✅ TailwindCSS kompiliert ohne Warnungen
|
||||
- ✅ Flask-Server startet erfolgreich
|
||||
- ✅ Alle API-Endpunkte funktionieren
|
||||
- ✅ Frontend lädt korrekt
|
||||
- ✅ Datenbank-Verbindung funktioniert
|
||||
- ✅ Session-Management aktiv
|
||||
|
||||
### Bestätigte Funktionalität:
|
||||
- Dashboard: http://127.0.0.1:5000/dashboard
|
||||
- Drucker-Verwaltung: http://127.0.0.1:5000/printers
|
||||
- Job-Verwaltung: http://127.0.0.1:5000/jobs
|
||||
- Kalender: http://127.0.0.1:5000/calendar
|
||||
- Admin-Panel: http://127.0.0.1:5000/admin/
|
||||
|
||||
## 🛠️ Wartung
|
||||
|
||||
### CSS-Build bei Änderungen:
|
||||
```bash
|
||||
cd backend
|
||||
npm run build:tailwind
|
||||
```
|
||||
|
||||
### Development-Server starten:
|
||||
```bash
|
||||
python backend/start_development.py
|
||||
```
|
||||
|
||||
### Production-Modus (falls erforderlich):
|
||||
```bash
|
||||
python backend/start_production.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
**Letzte Aktualisierung:** 16.06.2025
|
||||
**System-Status:** ✅ Vollständig funktionsfähig
|
Reference in New Issue
Block a user