forked from jappel/leistungsbilanz-ts
Running the stack on built output stopped the idle CPU load, but the remaining findings from the deployment report were still open. The Dockerfile is now multi-stage. The prod target runs on node:24-slim as the "node" user instead of root and carries only its runtime dependencies; "npm prune --omit=dev" drops tsx, drizzle-kit and typescript. The migration scripts need drizzle-orm and better-sqlite3, both regular dependencies, so they keep working. The dev target keeps devDependencies for compose.dev.yaml. Both compose files get a mem_limit. The server stack also sets memswap_limit to the same value, so a leak lets the OOM killer replace the container instead of pushing the host into swap. The Express API is no longer published on the host: it has no authentication and is reached through the Next.js rewrite. Development ports are bound to the loopback interface. Services drop all capabilities and run with no-new-privileges. SIGTERM and SIGINT now close the HTTP server and the SQLite handle and exit, instead of only logging the signal and waiting for the container's SIGKILL ten seconds later. server.closeIdleConnections() releases the keep-alive sockets the Next.js server holds, which would otherwise keep server.close() pending for the whole grace period. The compose start commands exec into node, because otherwise sh stays the foreground process and the signal never reaches it. Delete scripts/docker-start.sh rather than fixing its unsupervised background API: both compose stacks set their own command, so the single-container entrypoint has no caller left. Also remove drizzle.config.js (a stray tsc artifact drizzle-kit never reads) and the pre-Next index.html and styles.css. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| archive | ||
| spec | ||
| circuit-list-editor-api.md | ||
| circuit-list-editor-architecture.md | ||
| circuit-list-editor-interactions.md | ||
| circuit-list-editor-known-limitations.md | ||
| current-architecture.md | ||
| deployment.md | ||
| development-workflow.md | ||
| project-history-and-external-model-architecture.md | ||
| README.md | ||
| revit-requirements-llm-context.md | ||
Dokumentationsübersicht
Diese Seite ist der Einstieg in die Projektdokumentation. Aussagen zum aktuellen System stehen unter „Aktuell“. Zukunftsentwürfe und historische Unterlagen sind ausdrücklich getrennt und dürfen nicht als bereits implementiert verstanden werden.
Aktuell
- Aktuelle Systemarchitektur – Laufzeit, Modulgrenzen, Datenfluss und unterstützte Codepfade
- Stromkreislisten-Architektur – fachliches Modell und Grid-Aufteilung
- Editor-Interaktionen – Tastatur, Drag-and-drop, Sortierung, Filterung und Undo/Redo
- Editor-API – unterstützte Circuit-First-Endpunkte
- Bekannte Einschränkungen – bewusst noch nicht implementierte oder begrenzte Funktionen
Entwicklung und Betrieb
Zukunftsarchitektur
- Projektversionen und externer Modellaustausch
- LLM-Kontext für die Revit-Anforderungsplanung
- Revit-CSV-Anforderungen
- Phase-14-Audit und Implementierungsplan
- Zukünftige Dimensionierung
- Roadmap und Phasen
- Aktueller Produkt-Backlog
Fachliche Referenzspezifikation
Die folgenden Dokumente beschreiben Zielregeln und Anforderungen. Nicht jeder Punkt ist bereits umgesetzt; der aktuelle Stand ergibt sich aus Architektur, Limitierungen und Roadmap.
- Domänenkontext
- Funktionale Anforderungen
- Datenmodellkonzept
- UI- und Interaktionsanforderungen
- Verknüpfte Projektgeräte und Synchronisierung
- Verteilerkomponenten und Schutzgruppen
Archiv
- Frühe Codex-Promptvorlagen – historischer Arbeitsstand, keine aktuelle Implementierungsanweisung