tao-shen Claude Opus 4.6 commited on
Commit
baf6f79
Β·
1 Parent(s): f18461b

test: add 30s delay before nginx to verify HF SSE during STARTING

Browse files
Files changed (1) hide show
  1. ubuntu-server/start-server.sh +3 -2
ubuntu-server/start-server.sh CHANGED
@@ -111,8 +111,9 @@ log "[ubuntu] ══ System ready ══"
111
  done) &
112
 
113
  # ── Start nginx LAST β†’ opens port 7860 β†’ HF transitions to RUNNING ──
114
- # All output above this line is visible in HF's runtime SSE
115
- # (HF only streams logs during STARTING state, before port 7860 responds)
 
116
  log "[ubuntu] Starting nginx on 0.0.0.0:7860 (HF will mark RUNNING) ..."
117
  nginx -g 'daemon off;' &
118
  NGINX_PID=$!
 
111
  done) &
112
 
113
  # ── Start nginx LAST β†’ opens port 7860 β†’ HF transitions to RUNNING ──
114
+ # Delay nginx to keep container in STARTING state so SSE captures output
115
+ log "[ubuntu] Delaying nginx by 30s to test HF SSE capture during STARTING..."
116
+ sleep 30
117
  log "[ubuntu] Starting nginx on 0.0.0.0:7860 (HF will mark RUNNING) ..."
118
  nginx -g 'daemon off;' &
119
  NGINX_PID=$!