diff --git a/scripts/serve.sh b/scripts/serve.sh new file mode 100755 index 0000000..640f8ff --- /dev/null +++ b/scripts/serve.sh @@ -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" \ No newline at end of file