This commit is contained in:
13
scripts/serve.sh
Executable file
13
scripts/serve.sh
Executable 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"
|
||||
Reference in New Issue
Block a user