refactor(cli)!: hard-cut legacy scripts and standardize console runtime
- remove legacy bin/module-*.php and bin/doctor.php entry scripts - move module/doctor execution into class-based runners under lib/Console - add stable JSON output for doctor and module:sync - introduce bin/dev for init/up/down/logs/console/qa workflow - update DI wiring, phpstan scan config, tests, and docs to new CLI contract
This commit is contained in:
@@ -1,16 +1,29 @@
|
||||
# Lokale Entwicklung
|
||||
|
||||
Letzte Aktualisierung: 2026-03-18
|
||||
Letzte Aktualisierung: 2026-04-01
|
||||
|
||||
## Ziel
|
||||
|
||||
Kompakter Tagesworkflow für Entwicklung, Tests und schema-nahe Änderungen.
|
||||
|
||||
## First-Time Workflow
|
||||
|
||||
```bash
|
||||
bin/dev init
|
||||
```
|
||||
|
||||
`bin/dev init` ist nicht-destruktiv und fuehrt aus:
|
||||
|
||||
1. `.env` aus `.env.example` erstellen (falls fehlend)
|
||||
2. `docker compose up --build -d`
|
||||
3. `module:sync`
|
||||
4. `doctor`
|
||||
|
||||
## Start/Stop
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
docker compose down
|
||||
bin/dev up
|
||||
bin/dev down
|
||||
```
|
||||
|
||||
Hinweis: `up -d` startet auch den Scheduler-Service.
|
||||
@@ -34,6 +47,7 @@ Dieser Befehl fuehrt automatisch aus: `migrate` → `permissions-sync` → `buil
|
||||
Falls `web/index.php` den Fehler "Module runtime is stale" wirft, ist der Sync noetig.
|
||||
|
||||
Alle verfuegbaren CLI-Kommandos: `php bin/console list` (siehe `/docs/reference-cli-commands.md`).
|
||||
Alle Dev-Orchestrator-Kommandos: `bin/dev --help`.
|
||||
|
||||
## Schema-Stand
|
||||
|
||||
|
||||
Reference in New Issue
Block a user