her.esy.fun/engine/serve.sh
Yann Esposito (Yogsototh) 717269a4bb
updated slightly engine
2020-02-16 16:56:19 +01:00

14 lines
203 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" && \
sws -d --port 3001 .