mirror of https://github.com/beego/bee.git
fix a bug if filepath contains tmp will cause watch pass.
This commit is contained in:
parent
cc77534090
commit
2d32451b3c
|
@ -39,11 +39,11 @@ var (
|
||||||
watchExts = config.Conf.WatchExts
|
watchExts = config.Conf.WatchExts
|
||||||
watchExtsStatic = config.Conf.WatchExtsStatic
|
watchExtsStatic = config.Conf.WatchExtsStatic
|
||||||
ignoredFilesRegExps = []string{
|
ignoredFilesRegExps = []string{
|
||||||
`.#(\w+).go`,
|
`.#(\w+).go$`,
|
||||||
`.(\w+).go.swp`,
|
`.(\w+).go.swp$`,
|
||||||
`(\w+).go~`,
|
`(\w+).go~$`,
|
||||||
`(\w+).tmp`,
|
`(\w+).tmp$`,
|
||||||
`commentsRouter_controllers.go`,
|
`commentsRouter_controllers.go$`,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -239,6 +239,7 @@ func Start(appname string) {
|
||||||
go cmd.Run()
|
go cmd.Run()
|
||||||
beeLogger.Log.Successf("'%s' is running...", appname)
|
beeLogger.Log.Successf("'%s' is running...", appname)
|
||||||
started <- true
|
started <- true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func ifStaticFile(filename string) bool {
|
func ifStaticFile(filename string) bool {
|
||||||
|
|
Loading…
Reference in New Issue