1
0
mirror of https://github.com/beego/bee.git synced 2024-12-24 03:00:49 +00:00

Merge pull request #522 from lixiangzhong/master

Update watch.go
This commit is contained in:
astaxie 2018-07-21 22:58:48 +08:00 committed by GitHub
commit 25a2684240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,9 +145,9 @@ func AutoBuild(files []string, isgenerate bool) {
}
beeLogger.Log.Success("Docs generated!")
}
appName := appname
if err == nil {
appName := appname
if runtime.GOOS == "windows" {
appName += ".exe"
}
@ -171,7 +171,7 @@ func AutoBuild(files []string, isgenerate bool) {
}
beeLogger.Log.Success("Built Successfully!")
Restart(appname)
Restart(appName)
}
// Kill kills the running command process