Created
March 13, 2019 23:56
-
-
Save ryan-blunden/a6bc979e6931e3b71ef6dfe8655965f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# usage (requires fswatch): `fswatch -o . | xargs -n1 -I{} ./bin/hot-reload.sh` | |
# usage (requires fsevents-tools): `while true; do notifywait ~/Projects/docsite; ./update.sh; done` | |
killall docsite | |
cd cmd/docsite | |
go get | |
cd - | |
docsite -config "../sourcegraph/doc/docsite.json" serve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment