her.esy.fun/engine/serve.sh

14 lines
202 B
Bash
Raw Normal View History

2019-07-04 06:38:15 +00:00
#!/usr/bin/env bash
2020-02-09 11:57:46 +00:00
2020-02-10 08:42:17 +00:00
cd "$(git rev-parse --show-toplevel)" || exit 1
2020-02-16 15:56:19 +00:00
if (( $# == 0 )); then
webdir="_site"
else
webdir="$1"
fi
cd $webdir && \
echo "Serving: $webdir" && \
2021-04-27 17:38:24 +00:00
http-server -p 3000