added fix for deployment race condition
This commit is contained in:
@@ -148,13 +148,14 @@ controller/
|
||||
- **Auto-generated**: DB passwords, secret keys (shown as "✓ Generated")
|
||||
- **User input**: HDD path, admin password, language, etc.
|
||||
- **"🎲 Generálás"** button next to password fields
|
||||
3. Clicks "Telepítés" → controller:
|
||||
3. Clicks "Telepítés" → `checkBeforeDeploy()` JS guard fetches live state from API first (prevents deploying if already deployed from another tab). Then controller:
|
||||
- **Memory validation**: checks `mem_request` against available system RAM (see below)
|
||||
- Validates all required fields (password fields must be explicitly filled or generated)
|
||||
- Generates auto-secrets (DB passwords, hex keys)
|
||||
- Saves `app.yaml` (env vars + locked fields list)
|
||||
- **Updates in-memory state immediately** (so UI shows "deployed" during slow compose ops)
|
||||
- Runs `docker compose up -d` with env vars injected
|
||||
- Updates in-memory state immediately (no stale "Telepítés" button)
|
||||
- On failure: reverts both in-memory state and disk (app.yaml `deployed: false`)
|
||||
4. **Progress UI** replaces the form with a 3-step progress panel:
|
||||
- ✅ "Konfiguráció mentve" — shown immediately after API success
|
||||
- ⏳ "Konténer(ek) indítása..." → ✅ when containers are up
|
||||
|
||||
Reference in New Issue
Block a user