.air.worker.toml 1.3 KB

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