mirror of
https://github.com/beego/bee.git
synced 2025-07-05 18:20:18 +00:00
Add conf option for watch all
This commit is contained in:
2
run.go
2
run.go
@ -69,7 +69,7 @@ func runApp(cmd *Command, args []string) {
|
||||
|
||||
var paths []string
|
||||
|
||||
if len(args) > 0 && args[len(args)-1] == "watchall" {
|
||||
if conf.DirStruct.WatchAll || (len(args) > 0 && args[len(args)-1] == "watchall") {
|
||||
readAppDirectories(crupath, &paths)
|
||||
} else {
|
||||
paths = append(paths,
|
||||
|
Reference in New Issue
Block a user