Skip to content

Commit 9838dcf

Browse files
committed
Adding tmp to ignore
1 parent b764d11 commit 9838dcf

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.air.toml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Config file for [Air](https://github.com/cosmtrek/air) in TOML format
2+
3+
# Working directory
4+
# . or absolute path, please note that the directories following must be under root.
5+
root = "."
6+
tmp_dir = "tmp"
7+
8+
[build]
9+
# Just plain old shell command. You could use `make` as well.
10+
cmd = "go build -o ./tmp/main ."
11+
# Binary file yields from `cmd`.
12+
bin = "tmp/main"
13+
# Watch these filename extensions.
14+
include_ext = ["go", "tpl", "tmpl", "html", "yaml"]
15+
# Ignore these filename extensions or directories.
16+
exclude_dir = ["assets", "docs", "tmp", "web", "scripts", "ssh-key", ".github", ".git"]
17+
# Watch these directories if you specified.
18+
include_dir = []
19+
# Watch these files.
20+
include_file = []
21+
# Exclude files.
22+
exclude_file = ["config.example.yaml"]
23+
# Exclude specific regular expressions.
24+
exclude_regex = ["_test\\.go"]
25+
# Exclude unchanged files.
26+
exclude_unchanged = true
27+
# Follow symlink for directories
28+
follow_symlink = true
29+
# This log file places in your tmp_dir.
30+
log = "air.log"
31+
# It's not necessary to trigger build each time file changes if it's too frequent.
32+
delay = 0 # ms
33+
# Stop running old binary when build errors occur.
34+
stop_on_error = true
35+
# Send Interrupt signal before killing process (windows does not support this feature)
36+
send_interrupt = false
37+
# Delay after sending Interrupt signal
38+
kill_delay = 500 # ms
39+
# Add additional arguments when running binary (bin/full_bin). Will run './tmp/main hello world'.
40+
args_bin = ["dashboard", "--config", "config-test.yaml"]
41+
42+
[log]
43+
# Show log time
44+
time = false
45+
46+
[color]
47+
# Customize each part's color. If no color found, use the raw app log.
48+
main = "magenta"
49+
watcher = "cyan"
50+
build = "yellow"
51+
runner = "green"
52+
53+
[misc]
54+
# Delete tmp directory on exit
55+
clean_on_exit = true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ docker-compose.yaml
1414
ssh-key/ci/
1515
config-ci.yaml
1616
config-test.yaml
17+
tmp/

0 commit comments

Comments
 (0)