github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/.air.conf (about) 1 # .air.conf 2 # Config file for [Air](https://github.com/cosmtrek/air) in TOML format 3 4 # Working directory 5 # . or absolute path, please note that the directories following must be under root. 6 root = "." 7 tmp_dir = "tmp" 8 9 [build] 10 # Just plain old shell command. You could use `make` as well. 11 cmd = "make build" 12 # Binary file yields from `cmd`. 13 full_bin = "make server" 14 # Customize binary. 15 # Watch these filename extensions. 16 include_ext = ["go", "tpl", "tmpl", "html"] 17 # Ignore these filename extensions or directories. 18 exclude_dir = ["packages", "hacks", "monitoring", "assets", "tmp", "vendor", "node_modules", "webapp", "examples", "third_party", "coverage", "benchmark", "cypress"] 19 # Watch these directories if you specified. 20 include_dir = [] 21 # Exclude files. 22 exclude_file = [] 23 # It's not necessary to trigger build each time file changes if it's too frequent. 24 delay = 1000 # ms 25 26 send_interrupt = true 27 28 kill_delay = 2000000000 # ns 29 30 # Stop to run old binary when build errors occur. 31 stop_on_error = true 32 # This log file places in your tmp_dir. 33 log = "air_errors.log" 34 35 [log] 36 # Show log time 37 time = false 38 39 [color] 40 # Customize each part's color. If no color found, use the raw app log. 41 main = "magenta" 42 watcher = "cyan" 43 build = "yellow" 44 runner = "green" 45 46 [misc] 47 # Delete tmp directory on exit 48 # clean_on_exit = true