-
Notifications
You must be signed in to change notification settings - Fork 0
/
air.toml
44 lines (36 loc) · 1.09 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
# air.toml
[build]
# Command to build the app (default: "go build -o ./tmp/main .")
cmd = "go build -o ./tmp/main ."
# Binary that will be built and run (default: "./tmp/main")
bin = "./tmp/main"
# Delay before restarting the app after a change is detected (in milliseconds)
delay = 1000 # 1 second delay
# Specify directories for the temporary binary files (default: "tmp")
tmp_dir = "tmp"
[log]
# Log level (default: "info")
level = "info"
[watch]
# Directories or files to include in watch (default: current directory)
# You can add specific folders you want to watch.
includes = [
"./cmd",
"./config",
"./controllers",
"./database",
"./middlewares",
"./models",
"./repositories",
"./routes",
"./services",
"./utils",
"./validators"
]
# File extensions to watch (default: ["go"])
include_ext = ["go", "html", "tmpl", "tpl", "sql"]
# Exclude certain directories from being watched
exclude_dir = ["vendor", "tmp", "database/migrations"]
[ignore]
# List directories or files to be ignored from watching
dirs = ["tmp", "vendor"]