Spaces:
Sleeping
Sleeping
test: add 30s delay before nginx to verify HF SSE during STARTING
Browse files
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 |
-
#
|
| 115 |
-
|
|
|
|
| 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=$!
|