-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.air.toml
47 lines (42 loc) · 1.04 KB
/
.air.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
args_bin = ["--host", "0.0.0.0", "--public", "./dist"]
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ./main.go"
delay = 200
exclude_dir = ["assets", "tmp", "vendor", "node_modules", "public"]
# exclude_file = []
# exclude_regex = []
exclude_unchanged = false
follow_symlink = false
# full_bin = ""
include_dir = ["handlers", "models", "services", "utils", "pkg", "templates"]
include_ext = ["go", "tmpl"]
include_file = ["main.go", "dist/assets/style-*.css"]
kill_delay = 5000000000 # nanosecond
log = "build-errors.log"
poll = false
poll_interval = 0
# Workaround for shutting down the server (https://github.com/cosmtrek/air/issues/534)
post_cmd = ["lsof -i tcp:8080 | awk 'NR==2{print $2}' | xargs kill"]
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = true
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
[screen]
clear_on_rebuild = false
keep_scroll = true