diff --git a/build/common.go b/build/common.go index bf967a59d..5e2a0a66b 100644 --- a/build/common.go +++ b/build/common.go @@ -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 diff --git a/build/tmpl/bra.toml b/build/tmpl/bra.toml index c6b41917c..89989fa0f 100644 --- a/build/tmpl/bra.toml +++ b/build/tmpl/bra.toml @@ -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 @@ -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"] -] \ No newline at end of file +]