15 lines
305 B
Bash
Executable File
15 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
PORT=5174
|
|
cd "$(dirname "$0")"
|
|
|
|
# Cleanup existing process on the specified port
|
|
lsof -ti:$PORT | xargs kill -9 2>/dev/null
|
|
|
|
echo "Starting Hotline Planner on port $PORT..."
|
|
python3 -m http.server $PORT &
|
|
|
|
sleep 1
|
|
open "http://localhost:$PORT"
|
|
|
|
echo "Server active. Press Ctrl+C to stop."
|
|
wait |