-
Notifications
You must be signed in to change notification settings - Fork 0
/
gowatch.yml
54 lines (39 loc) · 1.41 KB
/
gowatch.yml
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
48
49
50
51
52
53
54
# gowatch.yml configuration example
# The name of the executable file generated under the current directory execution. The default is the current directory name.
# appname: "app"
# Specify the command to run after builds done
run_cmd: "./dist/cmd"
# Specify the directory where the compiled object files are stored
output: ./dist
# The file name suffix that needs to be monitored. By default, there is only a '.go' file.
# watch_exts:
# - .yml
# The directory that needs to listen for file changes. By default, only the current directory.
# watch_paths:
# - ../pk
# Additional parameters that need to be added when running the application
# cmd_args:
# - arg1=val1
# Additional parameters that need to be added when building the application
# build_args:
# - -race
# Need to increase environment variables, the current environment variables are loaded by default
# envs:
# - env1=val1
# Whether to listen to file changes in the 'vendor' folder
vendor_watch: false
# Directory that do not need to listen for file changes
excluded_paths:
- ./tmp
- ./dist
# main package path, can also be a single file, multiple files separated by commas
build_pkg: "./cmd"
# build tags
build_tags: "sqlite_fts5"
# Commands that can be executed before build the app
# prev_build_cmds:
# - swag init
# Whether to prohibit automatic operation
disable_run: false
# log level, support debug, info, warn, error, fatal
log_level: "debug"