This commit is contained in:
parent
51cbf07594
commit
f21401d046
1 changed files with 3 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
PORT=8080
|
|
||||||
python3 -m http.server $PORT --directory public/ &
|
|
||||||
|
|
||||||
|
PORT=21300
|
||||||
|
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 2
|
||||||
|
|
||||||
# Check if the server is running
|
# 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."
|
echo "HTTP server failed to start."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue