Doku: Findings aus dem Update festhalten (Live-DB lokal, Migrationen, CLI-Tests, Cache-Buster)
- docs/findings.md mit 11 dauerhaften Stolperfallen - README: Warnung zur Live-Datenbank und Migrations-Reihenfolge beim Deployment - architecture.md: Verweis im Betriebsabschnitt
This commit is contained in:
parent
7e462d84a1
commit
08e9b9dd91
3 changed files with 122 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -143,6 +143,11 @@ Die App ist als Progressive Web App eingerichtet:
|
|||
|
||||
## Lokal starten
|
||||
|
||||
> **Achtung:** `app/config.local.php` zeigt in der Regel auf die **Live-Datenbank**
|
||||
> (`DB_HOST: programmschmiede.de`). „Lokal“ heißt hier also Arbeit mit echten
|
||||
> Kundendaten – Details und weitere Stolperfallen in
|
||||
> [`docs/findings.md`](docs/findings.md).
|
||||
|
||||
Voraussetzungen: PHP mit `pdo_mysql`, MariaDB/MySQL. Kein Composer.
|
||||
|
||||
```bash
|
||||
|
|
@ -172,6 +177,11 @@ Für `--install` werden `DIC_ADMIN_FIRST`, `DIC_ADMIN_LAST` und
|
|||
`DIC_ADMIN_PASSWORD` aus der Umgebung gelesen oder interaktiv abgefragt.
|
||||
`install.php` wird nach erfolgreicher Installation vom Server entfernt.
|
||||
|
||||
Schemaänderungen: `sql/migrations/00X_*.sql` anlegen, `php tools/migrate.php`
|
||||
ausführen (trifft wegen `config.local.php` direkt die Live-DB) und dann
|
||||
`--sync` deployen – `--sync` selbst führt **keine** Migration aus. `docs/`
|
||||
wird nicht mit hochgeladen.
|
||||
|
||||
`--sync` übernimmt VAPID-Schlüssel, Cron-Token und Mail-Einstellungen aus der
|
||||
bestehenden Live-Konfiguration, solange sie nicht per Umgebung überschrieben
|
||||
werden (`VAPID_PUBLIC_KEY`, `VAPID_PRIVATE_KEY`, `VAPID_SUBJECT`, `CRON_TOKEN`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue