github.com/joao-fontenele/go-url-shortener@v1.3.4/air.toml (about) 1 # Config file for [Air](https://github.com/cosmtrek/air) in TOML format 2 3 # Working directory 4 # . or absolute path, please note that the directories following must be under root. 5 root = "." 6 tmp_dir = "tmp" 7 8 [build] 9 # Just plain old shell command. You could use `make` as well. 10 cmd = "go build -o ./bin/server cmd/server.go" 11 # Binary file yields from `cmd`. 12 bin = "./bin/server" 13 # Customize binary. 14 full_bin = "./bin/server" 15 # Watch these filename extensions. 16 include_ext = ["go", "tpl", "tmpl", "html"] 17 # Ignore these filename extensions or directories. 18 exclude_dir = ["assets", "tmp", "vendor", "frontend/node_modules", "data"] 19 # Watch these directories if you specified. 20 include_dir = [] 21 # Exclude files. 22 exclude_file = [] 23 # This log file places in your tmp_dir. 24 log = "air.log" 25 # It's not necessary to trigger build each time file changes if it's too frequent. 26 delay = 500 # ms 27 # Stop running old binary when build errors occur. 28 stop_on_error = true 29 # Send Interrupt signal before killing process (windows does not support this feature) 30 send_interrupt = true 31 # Delay after sending Interrupt signal 32 kill_delay = 500 # ms 33 34 [log] 35 # Show log time 36 time = true 37 38 [color] 39 # Customize each part's color. If no color found, use the raw app log. 40 main = "magenta" 41 watcher = "cyan" 42 build = "yellow" 43 runner = "green" 44 45 [misc] 46 # Delete tmp directory on exit 47 clean_on_exit = false