From 6add212faaa941e94c913b245688ace6105db0c5 Mon Sep 17 00:00:00 2001 From: Yihang Wang Date: Fri, 25 Oct 2024 00:57:39 +0800 Subject: [PATCH] refactor: build configuration to use JSON format for server config files --- .air.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.air.toml b/.air.toml index beecf41..76d38c1 100644 --- a/.air.toml +++ b/.air.toml @@ -3,9 +3,9 @@ testdata_dir = "testdata" tmp_dir = "tmp" [build] - args_bin = [] - bin = "./tmp/platypus-server" - cmd = "go build -o ./tmp/platypus-server cmd/platypus-server/main.go" + args_bin = ["-c", "cmd/server/config.example.dev.json"] + bin = "./tmp/server" + cmd = "go build -o ./tmp/server cmd/server/main.go" delay = 1000 exclude_dir = ["assets", "tmp", "vendor", "testdata", "web", "docs", ".github"] exclude_file = []