13 lines
203 B
Bash
Executable file
13 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 3000 .
|