From 6eabc7d670fbd8c992f0cb1178caddb0c8f3b558 Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Thu, 9 Jul 2026 04:13:58 +0000 Subject: [PATCH] feat: Add dev environment config (.envrc + .air.toml) Configure Wild Central for development alongside Wild Cloud: - Port 15055 (avoids conflict with Wild Cloud on 5055) - NATS port 14222 (avoids conflict with production NATS) - Data dir shared with wild-cloud-redmond-data - Air config for live reloading Co-Authored-By: Claude Opus 4.6 (1M context) --- .air.toml | 19 +++++++++++++++++++ .envrc | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 .air.toml create mode 100644 .envrc diff --git a/.air.toml b/.air.toml new file mode 100644 index 0000000..302ce00 --- /dev/null +++ b/.air.toml @@ -0,0 +1,19 @@ +root = "." +tmp_dir = "tmp" + +[build] + bin = "./tmp/main" + cmd = "go build -o ./tmp/main ." + delay = 1000 + exclude_dir = ["tmp", "build", "dist", "vendor", "web"] + exclude_regex = ["_test.go$"] + include_ext = ["go", "yaml"] + kill_delay = "0s" + send_interrupt = true + stop_on_error = true + +[log] + time = false + +[misc] + clean_on_exit = true diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..ddc7035 --- /dev/null +++ b/.envrc @@ -0,0 +1,5 @@ +# Wild Central dev environment +# Shares data dir with Wild Cloud for development +export WILD_CENTRAL_DATA_DIR=$HOME/repos/wild-cloud-dev/wild-cloud-redmond-data +export WILD_CENTRAL_PORT=15055 +export WILD_CENTRAL_NATS_PORT=14222