Skip to content

Commit 2f2d60d

Browse files
author
Hoang Nguyen
committed
add auto rebuild/restart server on changes
1 parent 1c991e0 commit 2f2d60d

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.bra.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
init_cmds = [["go", "build"], ["./blockform"]]
3+
watch_all = true
4+
watch_dirs = [
5+
"$WORKDIR/"
6+
]
7+
watch_exts = [".go"]
8+
ignore = [".git"]
9+
10+
# Minimal interval to Trigger build event
11+
build_delay = 2000
12+
13+
cmds = [["go", "build"], ["./blockform"]]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,10 @@ Get, build and run:
7373
go get github.com/WeTrustPlatform/blockform
7474
cd $GOPATH/src/github.com/WeTrustPlatform/blockform
7575
go build && ./blockform
76+
77+
78+
### Development
79+
- (Optional) Auto rebuild and restart server when you make changes in `*.go` files using [bra](https://github.com/Unknwon/bra)
80+
* `go get github.com/Unknwon/bra`
81+
* `bra run`
82+
* Happy coding

0 commit comments

Comments
 (0)