diff --git a/.air.toml b/.air.toml new file mode 100644 index 0000000000..9f44d95503 --- /dev/null +++ b/.air.toml @@ -0,0 +1,53 @@ +root = "." +testdata_dir = "testdata" +tmp_dir = "tmp" + +[build] + root = "." + args_bin = ["start"] + bin = "./cells" + cmd = "make dev" + delay = 1000 + exclude_dir = ["assets", "tmp", "vendor", "testdata"] + exclude_file = [] + exclude_regex = ["_test.go"] + exclude_unchanged = false + follow_symlink = false + full_bin = "" + include_dir = ["broker", "cmd", "common", "data", "discovery", "frontend", "gateway", "idm", "scheduler"] + include_ext = ["go"] + include_file = [] + kill_delay = "0s" + log = "*.log" + poll = false + poll_interval = 0 + post_cmd = [] + pre_cmd = [] + rerun = false + rerun_delay = 500 + send_interrupt = false + stop_on_error = true + +[color] + app = "" + build = "yellow" + main = "magenta" + runner = "green" + watcher = "cyan" + +[log] + main_only = false + silent = false + time = false + +[misc] + clean_on_exit = false + +[proxy] + app_port = 0 + enabled = false + proxy_port = 0 + +[screen] + clear_on_rebuild = false + keep_scroll = true diff --git a/README.md b/README.md index 23d13092c1..3af87d7f3f 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,14 @@ To run the tests, simply do go test -v ./... ``` +## Running with live reload +First install [air](https://github.com/air-verse/air) +`go install github.com/air-verse/air@latest` +Run with live reload +```sh +air -c .air.toml +``` + Please read the [CONTRIBUTING.md](CONTRIBUTING.md) document if you wish to add more tests or contribute to the code. ## Pre-built Binaries