I'm trying to run firetower -c 'go build && ./mybin', but firetower doesn't seem to kill ./mybin correctly before attempting to restart it, which leads to problems like:
2017/06/21 20:49:32 listen tcp 127.0.0.1:8080: bind: address already in use
I tried running multiple firetower instances, but that's no bueno. Attempting to stick it in subshell like so: firetower -c '(go build && ./mybin)' doesn't seem to work either.
What's the right way of doing this? (Shell script that does make and run?)
I'm trying to run
firetower -c 'go build && ./mybin', but firetower doesn't seem to kill./mybincorrectly before attempting to restart it, which leads to problems like:I tried running multiple firetower instances, but that's no bueno. Attempting to stick it in subshell like so:
firetower -c '(go build && ./mybin)'doesn't seem to work either.What's the right way of doing this? (Shell script that does make and run?)