From 25e82be33927bb906aa6a4c0ed67a114d65397fc Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Sun, 29 Sep 2024 23:09:53 +0200 Subject: [PATCH] chore: update air config --- .air.toml | 42 ++++-------------------------------------- main.go | 1 - 2 files changed, 4 insertions(+), 39 deletions(-) diff --git a/.air.toml b/.air.toml index 9ff7ed6..6346c58 100644 --- a/.air.toml +++ b/.air.toml @@ -2,48 +2,14 @@ root = "." tmp_dir = "tmp" [build] - args_bin = [] bin = "./tmp/main" cmd = "templ generate && go build -o ./tmp/main ." - delay = 1000 exclude_dir = ["static", "migrations", "node_modules", "tmp"] - exclude_file = [] exclude_regex = ["_test.go", "_templ.go"] - exclude_unchanged = false - follow_symlink = false - include_dir = [] - include_ext = ["go", "templ", "html"] - include_file = [] - kill_delay = "0s" - log = "build-errors.log" - poll = false - poll_interval = 0 - post_cmd = [] - pre_cmd = [] - rerun = false - rerun_delay = 500 - send_interrupt = false + include_ext = ["go", "templ"] + send_interrupt = true + kill_delay = "5s" stop_on_error = true -[color] - app = "" - build = "yellow" - main = "magenta" - runner = "green" - watcher = "cyan" - -[log] - main_only = 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 + clean_on_exit = true diff --git a/main.go b/main.go index 1687ee3..475319a 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,6 @@ func main() { } func run(ctx context.Context) { - ctx, cancel := signal.NotifyContext(ctx, syscall.SIGINT, syscall.SIGTERM) defer cancel()