Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add Air (hot reload) configure

天舟702ee85a08f3
diff --git a/backend/.air.toml b/backend/.air.toml
new file mode 100644
index 0000000000..e444bfaafd
--- /dev/null
+++ b/backend/.air.toml
@@ -0,0 +1,13 @@
+root = "."
+tmp_dir = ".air"
+
+[build]
+ bin = "./.air/server"
+ cmd = "go build -o ./.air/server ./cmd/server/"
+ delay = 1000
+ exclude_dir = [".air", "vendor"]
+ exclude_file = []
+ exclude_regex = []
+ exclude_unchanged = false
+ follow_symlink = false
+ full_bin = ""
\ No newline at end of file
diff --git a/backend/.gitignore b/backend/.gitignore
index f7b34922f8..9c76a090f8 100644
--- a/backend/.gitignore
+++ b/backend/.gitignore
@@ -12,4 +12,7 @@
*.out
# Dependency directories (remove the comment below to include it)
-# vendor/
\ No newline at end of file
+# vendor/
+
+# Air (hot reload) generated
+.air
\ No newline at end of file