1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 18:20:18 +00:00

Add support for watch main package files through bee.json

This commit is contained in:
Unknown
2013-07-24 20:36:22 +08:00
parent 172bc44b22
commit ead4f9fd81
3 changed files with 10 additions and 2 deletions

2
run.go
View File

@ -40,6 +40,7 @@ var conf struct {
Controllers string
Models string
} `json:"dir_structure"`
Files []string
}
func runApp(cmd *Command, args []string) {
@ -58,6 +59,7 @@ func runApp(cmd *Command, args []string) {
paths = append(paths,
path.Join(crupath, conf.DirStruct.Controllers),
path.Join(crupath, conf.DirStruct.Models))
paths = append(paths, conf.Files...)
NewWatcher(paths)
appname = args[0]