From 9bcc9d02a0ae5936aa9585175fe3f87d3458775d Mon Sep 17 00:00:00 2001 From: Vadim Aleksandrov Date: Mon, 15 Jul 2024 16:26:49 +0300 Subject: [PATCH] chore: add air tool for hot reload app --- app/.air.toml | 36 ++++++++++++++++++++++++++++++++++++ app/.gitignore | 1 + 2 files changed, 37 insertions(+) create mode 100644 app/.air.toml diff --git a/app/.air.toml b/app/.air.toml new file mode 100644 index 0000000..14411a2 --- /dev/null +++ b/app/.air.toml @@ -0,0 +1,36 @@ +root = '.' +tmp_dir = 'bin' + +[build] +cmd = 'go build -o bin/app main.go' +bin = './bin/app' +full_bin = '' +args_bin = [] +include_ext = ['go'] +exclude_dir = ['bin', 'tests'] +include_dir = [] +exclude_file = [] +exclude_regex = ['_test.go'] +exclude_unchanged = false +follow_symlink = false +delay = 1000 +stop_on_error = true +send_interrupt = false +kill_delay = 0 + +[color] +main = 'magenta' +watcher = 'cyan' +build = 'yellow' +runner = 'green' +app = '' + +[log] +time = false + +[misc] +clean_on_exit = true + +[screen] +clear_on_rebuild = false + diff --git a/app/.gitignore b/app/.gitignore index 2706aa8..9936971 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1 +1,2 @@ tmp-image +bin/ \ No newline at end of file