mirror of
https://github.com/beego/bee.git
synced 2024-12-22 10:00:50 +00:00
Update watch.go
在window编译linux后,bee run 执行的appname为linux的可执行文件
This commit is contained in:
parent
e90da8f77b
commit
5ba8b15e3a
@ -139,9 +139,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"
|
||||
}
|
||||
@ -165,7 +165,7 @@ func AutoBuild(files []string, isgenerate bool) {
|
||||
}
|
||||
|
||||
beeLogger.Log.Success("Built Successfully!")
|
||||
Restart(appname)
|
||||
Restart(appName)
|
||||
}
|
||||
|
||||
// Kill kills the running command process
|
||||
|
Loading…
Reference in New Issue
Block a user