Skip to content

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@latest

Setup ​

bash
air init       # creates .air.toml

Adjust the binary name and entrypoint in .air.toml if needed:

toml
[build]
  cmd = "go build -o ./tmp/main ."
  bin = "./tmp/main"

Run ​

bash
air

Air watches .go files, rebuilds, and restarts the binary. It sends SIGTERM on restart, which Zen's graceful shutdown handles automatically.

Released under the MIT License.