re-add backgrounding, increase sleep
Some checks failed
Hugo / build (push) Failing after 18s

This commit is contained in:
Brooke 2024-03-09 17:06:30 -05:00
parent 6e0810c0f3
commit a0cca0ca34

7
bin/test_static_page.sh Normal file → Executable file
View file

@ -1,15 +1,14 @@
#!/bin/bash #!/bin/bash
PORT=21300 PORT=21300
python3 -m http.server $PORT --directory public/ python3 -m http.server $PORT --directory public/ &
SERVER_PID=$! SERVER_PID=$!
# Give it a moment to start # Give it a moment to start
sleep 2 sleep 5
# Check if the server is running # Check if the server is running
if ! pgrep -P $SERVER_PID > /dev/null; then if ! ps -p $SERVER_PID > /dev/null; then
echo "HTTP server failed to start." echo "HTTP server failed to start."
exit 1 exit 1
fi fi