fix local run startup and stale dispatch
This commit is contained in:
@@ -83,6 +83,19 @@ start_self_hosted_stack() {
|
||||
printf '%s' "$!" >"$LOCAL_DEBUG_PID_DIR/platform.pid"
|
||||
wait_for_url platform "$PLATFORM_URL/healthz" 45
|
||||
|
||||
printf 'self-starting platform_web for local debug smoke\n'
|
||||
(
|
||||
cd "$ROOT_DIR"
|
||||
exec env \
|
||||
PLATFORM_API_PROXY="$PLATFORM_API_PROXY" \
|
||||
VITE_PLATFORM_API_BASE_URL="$VITE_PLATFORM_API_BASE_URL" \
|
||||
VITE_ENABLE_LOCAL_AUTH_FALLBACK="$VITE_ENABLE_LOCAL_AUTH_FALLBACK" \
|
||||
npm --prefix platform_web run dev -- --port "$LOCAL_DEBUG_WEB_PORT"
|
||||
) >"$LOCAL_DEBUG_LOG_DIR/platform_web.log" 2>&1 &
|
||||
SELF_STARTED_PIDS+=("$!")
|
||||
printf '%s' "$!" >"$LOCAL_DEBUG_PID_DIR/platform_web.pid"
|
||||
wait_for_url platform_web "$(local_debug_web_url)" 45
|
||||
|
||||
printf 'self-starting run worker for local debug smoke\n'
|
||||
local_debug_build_bootstrap_run
|
||||
(
|
||||
@@ -106,19 +119,6 @@ start_self_hosted_stack() {
|
||||
) >"$LOCAL_DEBUG_LOG_DIR/run.log" 2>&1 &
|
||||
SELF_STARTED_PIDS+=("$!")
|
||||
printf '%s' "$!" >"$LOCAL_DEBUG_PID_DIR/run.pid"
|
||||
|
||||
printf 'self-starting platform_web for local debug smoke\n'
|
||||
(
|
||||
cd "$ROOT_DIR"
|
||||
exec env \
|
||||
PLATFORM_API_PROXY="$PLATFORM_API_PROXY" \
|
||||
VITE_PLATFORM_API_BASE_URL="$VITE_PLATFORM_API_BASE_URL" \
|
||||
VITE_ENABLE_LOCAL_AUTH_FALLBACK="$VITE_ENABLE_LOCAL_AUTH_FALLBACK" \
|
||||
npm --prefix platform_web run dev -- --port "$LOCAL_DEBUG_WEB_PORT"
|
||||
) >"$LOCAL_DEBUG_LOG_DIR/platform_web.log" 2>&1 &
|
||||
SELF_STARTED_PIDS+=("$!")
|
||||
printf '%s' "$!" >"$LOCAL_DEBUG_PID_DIR/platform_web.pid"
|
||||
wait_for_url platform_web "$(local_debug_web_url)" 45
|
||||
}
|
||||
|
||||
if [[ "${LOCAL_DEBUG_SELF_START:-false}" == "true" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user