Skip to content

Instantly share code, notes, and snippets.

@ryan-blunden
Created March 13, 2019 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryan-blunden/a6bc979e6931e3b71ef6dfe8655965f7 to your computer and use it in GitHub Desktop.
Save ryan-blunden/a6bc979e6931e3b71ef6dfe8655965f7 to your computer and use it in GitHub Desktop.
#!/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