diff options
Diffstat (limited to 'scripts/debug.sh')
| -rwxr-xr-x | scripts/debug.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/debug.sh b/scripts/debug.sh new file mode 100755 index 0000000..0ae14a3 --- /dev/null +++ b/scripts/debug.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +TOP_LEVEL="$(git rev-parse --show-toplevel)" +PORT="${1:-8001}" + +echo ":: Watching directory src/ and serving continuous builds on http://localhost:${PORT}" + +bash scripts/_build-and-serve.sh ${PORT} +fswatch -or src | xargs -n1 -I{} bash scripts/_build-and-serve.sh ${PORT} |
