You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1.3 KiB

# Air 热加载配置 - 仅监控后端 Go 代码
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
args_bin = []
bin = "./tmp/task-track-backend.exe"
cmd = "go build -o ./tmp/task-track-backend.exe ."
delay = 1000
# 排除不需要监控的目录 - 确保不监控前端和其他非后端目录
exclude_dir = ["tmp", "vendor", "testdata", "uploads", "database", ".git", "node_modules", "../frontend", "../todo", "../database"]
exclude_file = []
exclude_regex = ["_test.go", ".*\\.md$", ".*\\.bat$", ".*\\.sh$", ".*\\.http$"]
exclude_unchanged = false
follow_symlink = false
full_bin = ""
# 明确指定只监控后端相关目录
include_dir = [".", "internal", "model", "pkg"]
# 只监控 Go 代码和配置文件
include_ext = ["go", "yaml", "yml"]
include_file = []
kill_delay = "2s"
log = "tmp/build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = false
stop_on_error = true
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
main_only = false
silent = false
time = true
[misc]
clean_on_exit = true
[proxy]
app_port = 0
enabled = false
proxy_port = 0
[screen]
clear_on_rebuild = true
keep_scroll = false