.air.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #
  2. root = "."
  3. testdata_dir = "testdata"
  4. tmp_dir = "tmp"
  5. [build]
  6. args_bin = []
  7. bin = "./tmp/main" # !!!注意在window下此配置是 ./tmp/skeleton.exe 不然可能导致router路由不加载 业务接口请求失效
  8. cmd = "go build -o ./tmp/main ./cmd/app" # !!!注意在window下此配置是 go build -o ./tmp/main.exe ./cmd/app
  9. delay = 1000
  10. exclude_dir = ["assets", "tmp", "vendor", "testdata"]
  11. exclude_file = []
  12. exclude_regex = ["_test.go"]
  13. exclude_unchanged = false
  14. follow_symlink = false
  15. full_bin = ""
  16. include_dir = []
  17. include_ext = ["go", "tpl", "tmpl", "html"]
  18. include_file = []
  19. kill_delay = "0s"
  20. log = "build-errors.log"
  21. poll = false
  22. poll_interval = 0
  23. post_cmd = []
  24. pre_cmd = []
  25. rerun = false
  26. rerun_delay = 500
  27. send_interrupt = false
  28. stop_on_error = false
  29. [color]
  30. app = ""
  31. build = "yellow"
  32. main = "magenta"
  33. runner = "green"
  34. watcher = "cyan"
  35. [log]
  36. main_only = false
  37. silent = false
  38. time = false
  39. [misc]
  40. clean_on_exit = false
  41. [proxy]
  42. app_port = 0
  43. enabled = false
  44. proxy_port = 0
  45. [screen]
  46. clear_on_rebuild = false
  47. keep_scroll = true
  48. [air]
  49. OnRestart = "func() { db.Close() }"