feat(deploy): prompt for service ports at install time; replace hardcoded 5000/5001/5002 with __PORT_*__ placeholders
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user