feat(deploy): prompt for service ports at install time; replace hardcoded 5000/5001/5002 with __PORT_*__ placeholders

This commit is contained in:
daniel-c-harvey
2026-06-04 13:27:00 -04:00
parent c14c032081
commit dfd6d33142
7 changed files with 26 additions and 7 deletions
+2 -2
View File
@@ -213,7 +213,7 @@ fi
# ── 5. api-public.json — no prompts, static localhost URL ────────────────────
if need_cred "api-public"; then
write_cred "api-public" \
'{"Api":{"ContentApiUrl":"http://localhost:5002"}}'
"{\"Api\":{\"ContentApiUrl\":\"http://localhost:${PORT_API:-5002}\"}}"
else
echo "[setup-step10-creds] api-public.json already exists, skipping"
fi
@@ -226,7 +226,7 @@ if need_cred "api-manager"; then
read -rp " Enter the API key: " API_KEY
fi
write_cred "api-manager" \
"{\"Api\":{\"ContentApiUrl\":\"http://localhost:5002\",\"ContentApiKey\":\"$(json_escape "${API_KEY}")\"}}"
"{\"Api\":{\"ContentApiUrl\":\"http://localhost:${PORT_API:-5002}\",\"ContentApiKey\":\"$(json_escape "${API_KEY}")\"}}"
unset API_KEY
else
echo "[setup-step10-creds] api-manager.json already exists, skipping"