her.esy.fun/engine/serve.sh
Yann Esposito (Yogsototh) 389dfa71da
fix port 3000
2021-04-23 16:40:15 +02:00

14 lines
202 B
Bash
Executable file

#!/usr/bin/env bash
cd "$(git rev-parse --show-toplevel)" || exit 1
if (( $# == 0 )); then
webdir="_site"
else
webdir="$1"
fi
cd $webdir && \
echo "Serving: $webdir" && \
http-server -p 3000