We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de141b5 commit 5813173Copy full SHA for 5813173
scripts/run_sample_app.sh
@@ -13,22 +13,7 @@ dotnet build "$1" # > /dev/null 2>&1
13
# Run the sample app
14
echo "[✓] Running the sample app..."
15
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
30
- sleep 1
31
-done
+sleep 2
32
33
# Check if the app is running
34
echo "[✓] Checking health endpoint..."
0 commit comments