Live Reloading
Added: v1.2.0
Zen applications are regular Go binaries - use air for auto-restart on file changes.
Install
bash
go install github.com/air-verse/air@latestSetup
bash
air init # creates .air.tomlAdjust the binary name and entrypoint in .air.toml if needed:
toml
[build]
cmd = "go build -o ./tmp/main ."
bin = "./tmp/main"Run
bash
airAir watches .go files, rebuilds, and restarts the binary. It sends SIGTERM on restart, which Zen's graceful shutdown handles automatically.