mirror of
https://github.com/beego/bee.git
synced 2024-12-22 10:00:50 +00:00
Merge pull request #20 from Unknwon/master
Watch current directory and ignore non-go files.
This commit is contained in:
commit
4eb306ca85
4
run.go
4
run.go
@ -82,7 +82,9 @@ func runApp(cmd *Command, args []string) {
|
||||
paths = append(paths,
|
||||
path.Join(crupath, conf.DirStruct.Controllers),
|
||||
path.Join(crupath, conf.DirStruct.Models),
|
||||
path.Join(crupath, conf.MainFiles.Main))
|
||||
path.Join(crupath, "./")) // Current path.
|
||||
// Because monitor files has some issues, we watch current directory
|
||||
// and ignore non-go files.
|
||||
paths = append(paths, conf.DirStruct.Others...)
|
||||
paths = append(paths, conf.MainFiles.Others...)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user