30 lines
587 B
TOML
30 lines
587 B
TOML
root = "."
|
|
|
|
[build]
|
|
cmd = "make api && go build -o ./bin/ ./..."
|
|
args_bin = ["-conf", "./configs/config.yaml"]
|
|
delay = 1000
|
|
bin = "bin/manage"
|
|
exclude_dir = ["tmp", "bin", "api"]
|
|
log = "air.log"
|
|
stop_on_error = true
|
|
send_interrupt = false
|
|
kill_delay = 500 # ms
|
|
|
|
[restart]
|
|
delay = 1000
|
|
cmd = "./bin/manage -conf ./configs/config.yaml"
|
|
exclude_ext = [".tpl", ".log"]
|
|
include_ext = [".go", ".mod", ".sum", "api"]
|
|
|
|
[log]
|
|
time = false
|
|
|
|
[color]
|
|
main = "magenta"
|
|
watcher = "cyan"
|
|
build = "yellow"
|
|
runner = "green"
|
|
|
|
[misc]
|
|
clean_on_exit = true |