mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +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!")
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
appName := appname
|
||||
if err == nil {
|
||||
|
||||
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