37 lines
740 B
TOML
Executable File
37 lines
740 B
TOML
Executable File
# .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 # 毫秒
|