diff --git a/bezel/serve.sh b/bezel/serve.sh index c8477f5..adf4f90 100755 --- a/bezel/serve.sh +++ b/bezel/serve.sh @@ -1,3 +1,6 @@ #!/bin/bash -[ ! -d "Output" ] && swift run -python3 -m http.server --directory Output 8000 +[ ! -d "Output" ] && ./build.sh +SERVE_DIR=`mktemp -d` +ln -s "$(realpath Output)" $SERVE_DIR/bezel +python3 -m http.server --directory $SERVE_DIR 8000 +rm -rf $SERVE_DIR