- Add .air.toml configuration for Go hot-reloading - Add 'dev' target to run both frontend and backend together - Update dev-backend to use air instead of go run - Install air with: go install github.com/air-verse/air@latest
18 lines
385 B
TOML
18 lines
385 B
TOML
# .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"
|
|
stop_on_error = true
|
|
|
|
[log]
|
|
main_only = true
|
|
|
|
[misc]
|
|
clean_on_exit = true
|