chore: sync running docker state
Commit the app code currently running in Docker, including scheduler, store status, journal reminder, maintenance mode, and Foodsharing API check updates. Remove generated runtime logs from version control and ignore local runtime captures.
This commit is contained in:
35
README.md
35
README.md
@@ -85,6 +85,7 @@ Weitere Laufzeitdaten:
|
||||
| `npm start` | CRA-Devserver inkl. Live-Reload. |
|
||||
| `npm run build` | Produktionsbundle (CRA). |
|
||||
| `npm test` | Jest/RTL-Tests (Watch-Mode). Für CI `CI=true npm test`. |
|
||||
| `npm run check:foodsharing-api` | Prüft die genutzten Foodsharing-Endpunkte gegen `https://foodsharing.de/api/doc`. |
|
||||
| `node server.js` | Express-Server (liefert `build/`, API & Scheduler). |
|
||||
|
||||
Docker:
|
||||
@@ -137,6 +138,40 @@ CI=true npm test
|
||||
docker-compose up --build
|
||||
```
|
||||
- Container läuft mit dem gebauten Bundle & Express-Server.
|
||||
- Nach relevanten Änderungen an `server.js`, `services/`, `src/`, `Dockerfile` oder `docker-compose.yml` den Container immer neu bauen und neu starten:
|
||||
```bash
|
||||
docker compose up -d --build
|
||||
```
|
||||
oder alternativ:
|
||||
```bash
|
||||
./rebuildContainer.sh
|
||||
```
|
||||
|
||||
### Abschluss-Checkliste nach relevanten Änderungen
|
||||
|
||||
Bei Änderungen an `server.js`, `services/`, `src/`, `Dockerfile`, `docker-compose.yml` oder der Foodsharing-API-Integration immer vollständig ausführen:
|
||||
|
||||
1. Tests:
|
||||
```bash
|
||||
CI=true npm test -- --watch=false
|
||||
```
|
||||
2. Produktions-Build:
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
3. Falls Foodsharing-Endpunkte oder Payloads betroffen sind:
|
||||
```bash
|
||||
npm run check:foodsharing-api
|
||||
```
|
||||
4. Container neu bauen und starten:
|
||||
```bash
|
||||
docker compose up -d --build
|
||||
```
|
||||
5. Laufenden Dienst prüfen:
|
||||
```bash
|
||||
curl http://localhost:3005/api/health
|
||||
```
|
||||
Erwartet wird ein JSON mit `\"status\":\"ok\"`.
|
||||
|
||||
Beachte: `config/` muss beschreibbar sein, da dort u. a. Session- und Watcher-Infos landen.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user