Files
zsp-project/backend/.air.toml
2026-06-03 20:59:39 +08:00

37 lines
740 B
TOML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# .air.toml
root = "."
tmp_dir = "tmp"
[build]
cmd = "go build -o ./tmp/main ./cmd/api/main.go"
bin = "tmp/main"
full_bin = "./tmp/main"
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_file = []
exclude_regex = ["_test.go"]
exclude_unchanged = false
follow_symlink = false
log = "build-errors.log"
send_interrupt = true
stop_on_error = true
[color]
main = "magenta"
watcher = "cyan"
build = "yellow"
runner = "green"
[log]
time = false
[misc]
clean_on_exit = true
[watcher]
# 忽略的文件变化
ignore_list = ["vendor/*", "*.log", ".git/*", ".tmp/*", "node_modules/*"]
# 设置轮询间隔(适用于 Docker for Mac/Windows
poll = true
poll_interval = 500 # 毫秒