From 40bc4da8bf374f354f7ec51a4eb34114bdbb746f Mon Sep 17 00:00:00 2001 From: brooke Date: Sat, 9 Mar 2024 22:28:16 +0000 Subject: [PATCH] Update bin/test_static_page.sh --- bin/test_static_page.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/test_static_page.sh b/bin/test_static_page.sh index 14f4c97..efa9881 100644 --- a/bin/test_static_page.sh +++ b/bin/test_static_page.sh @@ -1,14 +1,14 @@ #!/bin/bash -PORT=8080 -python3 -m http.server $PORT --directory public/ & +PORT=21300 +python3 -m http.server $PORT --directory public/ & SERVER_PID=$! # Give it a moment to start sleep 2 # Check if the server is running -if ! ps -p $SERVER_PID > /dev/null; then +if [ ! -d "/proc/$SERVER_PID" ]; then echo "HTTP server failed to start." exit 1 fi