🔨 convenience script for serving
Some checks failed
Deploy to VM / deploy (push) Failing after 7s

This commit is contained in:
mi
2025-11-18 14:03:39 +10:00
parent 6d62ba8fe5
commit 2e136b5625

13
scripts/serve.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Convenience script to run a local HTTP server for the site
PORT="${1:-8080}"
SITE_DIR="$(dirname "$0")/../site"
echo "Starting HTTP server on port $PORT..."
echo "Site directory: $SITE_DIR"
echo "Open http://localhost:$PORT in your browser"
echo ""
echo "Press Ctrl+C to stop the server"
cd "$SITE_DIR" && python3 -m http.server "$PORT"