diff --git a/.bra.toml b/.bra.toml new file mode 100644 index 0000000..1672c42 --- /dev/null +++ b/.bra.toml @@ -0,0 +1,13 @@ +[run] +init_cmds = [["go", "build"], ["./blockform"]] +watch_all = true +watch_dirs = [ + "$WORKDIR/" +] +watch_exts = [".go", ".html"] +ignore = [".git"] + +# Minimal interval to Trigger build event +build_delay = 2000 + +cmds = [["go", "build"], ["./blockform"]] diff --git a/README.md b/README.md index dabecd1..098ef25 100644 --- a/README.md +++ b/README.md @@ -74,3 +74,10 @@ Get, build and run: go get github.com/WeTrustPlatform/blockform cd $GOPATH/src/github.com/WeTrustPlatform/blockform go build && ./blockform + + +### Development +- (Optional) Use [bra](https://github.com/Unknwon/bra) to auto rebuild and restart server when you make changes in `*.go` and `*.html` files: + * `go get github.com/Unknwon/bra` + * `bra run` + * Happy coding