Skip to content

Modern Docker Management, Designed for Everyone

chore: update air configuration

Kyle Mendellfae559eac37e
diff --git a/backend/.air.toml b/backend/.air.toml
index d58ac98fb..8581501b0 100644
--- a/backend/.air.toml
+++ b/backend/.air.toml
@@ -1,20 +1,27 @@
+#:schema https://json.schemastore.org/any.json
root = "."
tmp_dir = ".bin"
+env_files = [".env"]
[build]
+ cmd = "CGO_ENABLED=1 go build -tags 'exclude_frontend' -ldflags='-buildid=' -o ./.bin/arcane ./cmd"
bin = "./.bin/arcane"
- cmd = "PROJECTS_DIRECTORY=data/projects CGO_ENABLED=1 go build -tags 'exclude_frontend' -ldflags='-buildid=' -o ./.bin/arcane ./cmd"
+ entrypoint = ["./.bin/arcane"]
+ include_ext = ["go", "tpl", "tmpl", "html"]
exclude_dir = [".bin", "data", "node_modules", ".git"]
- stop_on_error = true
- delay = 500
- exclude_regex = ["_test.go", "_mock.go", ".*_test\\.go$"]
+ include_dir = []
+ include_file = []
+ exclude_file = []
+ exclude_regex = [".*_test\\.go$", ".*_mock\\.go$"]
exclude_unchanged = true
+ ignore_dangerous_root_dir = false
follow_symlink = false
- include_ext = ["go", "tpl", "tmpl", "html"]
kill_delay = "2s"
log = "build-errors.log"
poll = false
- poll_interval = 0
+ poll_interval = 500
+ delay = 500
+ stop_on_error = true
rerun = false
rerun_delay = 300
send_interrupt = true