From 91d83e7f4a4a47f2e8cd84258ef1de26f3a25245 Mon Sep 17 00:00:00 2001 From: dark Date: Sat, 14 Feb 2026 09:03:58 +0800 Subject: [PATCH] feat: add Air hot reload config for backend development --- backend/.air.toml | 15 +++++++++++++++ backend/.gitignore | 1 + 2 files changed, 16 insertions(+) create mode 100644 backend/.air.toml create mode 100644 backend/.gitignore diff --git a/backend/.air.toml b/backend/.air.toml new file mode 100644 index 0000000..aa30718 --- /dev/null +++ b/backend/.air.toml @@ -0,0 +1,15 @@ +root = "." +tmp_dir = "tmp" + +[build] + cmd = "go build -o ./tmp/base.exe base.go" + bin = "./tmp/base.exe -f etc/base-api.yaml" + include_ext = ["go", "yaml"] + exclude_dir = ["tmp", "vendor", "tests"] + delay = 1000 + +[log] + time = false + +[misc] + clean_on_exit = true diff --git a/backend/.gitignore b/backend/.gitignore new file mode 100644 index 0000000..3fec32c --- /dev/null +++ b/backend/.gitignore @@ -0,0 +1 @@ +tmp/