1
0
mirror of https://github.com/beego/bee.git synced 2024-12-25 04:30:50 +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!") beeLogger.Log.Success("Docs generated!")
} }
if err == nil {
appName := appname appName := appname
if err == nil {
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
appName += ".exe" appName += ".exe"
} }
@ -171,7 +171,7 @@ func AutoBuild(files []string, isgenerate bool) {
} }
beeLogger.Log.Success("Built Successfully!") beeLogger.Log.Success("Built Successfully!")
Restart(appname) Restart(appName)
} }
// Kill kills the running command process // Kill kills the running command process