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