dNaszta
Watching golang source w net/http server
my problem is when i run this task, it doesn't tear down the command, so port will be busy on refresh, i am just a beginer in task, plz help me in this
version: '3'
interval: 3s
vars:
serve_cmd: go run cmd/web/main.go serve
tasks:
watchAndRun:
watch: true
sources: ["./*/.go"]
cmds:
- "{{.serve_cmd}}"
kill: SIGINT
desc: Serve the API
dir: $TASKFILE_PWD
4 replies