v0.1.27
Fix: Throughput API v1 available - Details posted to Irving. POWERBI_KEY was missing from the .ENV file, so was not live. Add: Editor now supports editing a mix's resolved formula directly, with % and kg dual entry on ingredient rows Fix: Mix Editor should bring through correct ingredients. New resolved formula (same logic we use in Mix Calculator). Fix: Security headers on all API responses (hardening) Add: New mix button available on the Mix Editor. Add: New ingredient button available on the Ingredient Editor
This commit is contained in:
@@ -458,6 +458,21 @@ fi
|
||||
throw
|
||||
}
|
||||
|
||||
# ── Reload nginx config ───────────────────────────────────────────────────
|
||||
# The nginx config is a bind-mounted file. `docker compose up` only recreates
|
||||
# a service when its definition changes, not when a mounted file's contents
|
||||
# change, so a running nginx keeps serving the config it loaded at start. Force
|
||||
# a reload so edits to clients.lean-101.conf (routing, security headers/CSP)
|
||||
# actually take effect on every deploy. Non-fatal: stacks without an nginx
|
||||
# service simply skip this.
|
||||
Write-Step "Reloading nginx to apply config changes"
|
||||
$nginxReload = "cd '$RemotePath' && docker compose $ComposeArgs exec -T nginx nginx -t && docker compose $ComposeArgs exec -T nginx nginx -s reload"
|
||||
if ((Try-Ssh $nginxReload) -eq 0) {
|
||||
Write-Ok "nginx reloaded"
|
||||
} else {
|
||||
Write-Warn "Skipped nginx reload (no nginx service, or config test failed)"
|
||||
}
|
||||
|
||||
# ── Health check ────────────────────────────────────────────────────────────
|
||||
Write-Step "Waiting for backend health check ($BackendContainer)"
|
||||
$healthScript = @"
|
||||
|
||||
Reference in New Issue
Block a user