Skip to content

Commit

Permalink
Change watch to build a debug binary (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
oshirohugo authored Mar 12, 2024
1 parent 07c6088 commit 840731b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func ensureWatchConfig() error {
return os.WriteFile(".bra.toml", config, 0600)
}

// Watch rebuilds the plugin backend when files change.
// Watch rebuilds the plugin backend debug version when files change.
func Watch() error {
if err := ensureWatchConfig(); err != nil {
return err
Expand Down
6 changes: 3 additions & 3 deletions build/tmpl/bra.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# see https://github.com/unknwon/bra/blob/master/templates/default.bra.toml for more configuration options.
[run]
init_cmds = [
["mage", "-v", "build:backend"],
["mage", "-v", "build:debug"],
["mage", "-v" , "reloadPlugin"]
]
watch_all = true
Expand All @@ -17,6 +17,6 @@ watch_dirs = [
watch_exts = [".go", ".json"]
build_delay = 2000
cmds = [
["mage", "-v", "build:backend"],
["mage", "-v", "build:debug"],
["mage", "-v" , "reloadPlugin"]
]
]

0 comments on commit 840731b

Please sign in to comment.