Skip to content

Commit 5813173

Browse files
Simplify sample app startup script by removing health check loop
1 parent de141b5 commit 5813173

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

scripts/run_sample_app.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,7 @@ dotnet build "$1" # > /dev/null 2>&1
1313
# Run the sample app
1414
echo "[✓] Running the sample app..."
1515
dotnet run --project "$1" --urls "http://localhost:5081" > /dev/null 2>&1 &
16-
APP_PID=$!
17-
18-
# Wait for the app to start
19-
echo "[✓] Waiting for app to start..."
20-
for i in {1..30}; do
21-
if curl -s http://localhost:5081/health > /dev/null; then
22-
echo "[✓] App is running!"
23-
break
24-
fi
25-
if [ $i -eq 30 ]; then
26-
echo "[✗] App failed to start after 30 seconds"
27-
kill $APP_PID
28-
exit 1
29-
fi
30-
sleep 1
31-
done
16+
sleep 2
3217

3318
# Check if the app is running
3419
echo "[✓] Checking health endpoint..."

0 commit comments

Comments
 (0)