Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 546 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 546 Bytes

shotgun-go

A port of the rack reloading tool shotgun to go.

Using

Example Usage: shotgun -u http://localhost:8008 -p 8010 -checkCmd='exit +"find -name *.go -newer ./bin/myapp | wc -l"+' -buildCmd="go build -o ./bin/myapp myapp" -runCmd="./bin/myapp"

Or simply use a yml config file named .shotgun-go and run shotgun

env:
  - FOO: "bar"
port: 8010
url: http://localhost:8008
checkcmd: "exit `+"`find -name *.go -newer ./bin/myapp | wc -l`"+`"
buildcmd: "go build -o ./bin/myapp myapp"
runcmd: "./bin/myapp"