Skip to content

Commit

Permalink
Merge pull request #39 from silenceper/fix-default-config
Browse files Browse the repository at this point in the history
update default gowatch.yml
  • Loading branch information
silenceper authored Jul 14, 2021
2 parents adacb6a + 1eec86f commit e99d412
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,39 +42,40 @@ var defaultYml = `
# gowatch.yml configuration example
# The name of the executable file generated under the current directory execution. The default is the current directory name.
appname: "test"
# appname: "app"
# Specify the command to run after builds done
run_cmd: "./run.sh"
# run_cmd: "./run.sh"
# Specify the directory where the compiled object files are stored
output: /bin/demo
# output: /bin/app
# The file name suffix that needs to be monitored. By default, there is only a '.go' file.
watch_exts:
- .yml
# watch_exts:
# - .yml
# The directory that needs to listen for file changes. By default, only the current directory.
watch_paths:
- ../pk
# watch_paths:
# - ../pk
# Additional parameters that need to be added when running the application
cmd_args:
- arg1=val1
# cmd_args:
# - arg1=val1
# Additional parameters that need to be added when building the application
build_args:
- -race
# build_args:
# - -race
# Need to increase environment variables, the current environment variables are loaded by default
envs:
- a=b
# 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:
- path
# excluded_paths:
# - path
# main package path, can also be a single file, multiple files separated by commas
build_pkg: ""
Expand All @@ -83,8 +84,8 @@ build_pkg: ""
build_tags: ""
# Commands that can be executed before build the app
#prev_build_cmds:
# - swag init
# prev_build_cmds:
# - swag init
# Whether to prohibit automatic operation
disable_run: false
Expand Down

0 comments on commit e99d412

Please sign in to comment.