mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +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!")
|
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"
|
||||||
}
|
}
|
||||||
@ -165,7 +165,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
|
||||||
|
Loading…
Reference in New Issue
Block a user