1
0
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:
Unknown
2014-02-17 17:26:59 -05:00
parent 1421e371a8
commit 1a352bc6b3
3 changed files with 9 additions and 13 deletions

2
run.go
View File

@ -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,