Fix .air.toml configuration and add PATH for air binary

This commit is contained in:
Christoph Haas 2026-03-23 21:50:19 +01:00
parent ad159b2549
commit 1ac8c2de5a
2 changed files with 1 additions and 6 deletions

View file

@ -39,7 +39,7 @@ dev-frontend:
dev-backend:
@echo "Starting backend dev server (hot-reload enabled)..."
cd $(BACKEND_DIR) && USE_EMBEDDED=false air
cd $(BACKEND_DIR) && USE_EMBEDDED=false PATH=$(PATH):$$HOME/go/bin air
# Clean build artifacts
clean:

View file

@ -1,11 +1,6 @@
# .air.toml - Air configuration for hot-reloading Go backend
# Install air: go install github.com/air-verse/air@latest
[root]
temp_dir = "tmp"
watch_dirs = ["."]
ignore_dirs = ["tmp", "vendor", "cmd/server/embed"]
[build]
bin = "./tmp/imc-vibe"
cmd = "go build -o ./tmp/imc-vibe ./cmd/server"