.air.toml 1.3 KB

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