mirror of
https://github.com/beego/bee.git
synced 2024-11-21 13:40:53 +00:00
fixed: Support bee start appname && bee start ./appname
This commit is contained in:
parent
671e27c157
commit
2a71bd2603
5
watch.go
5
watch.go
@ -8,6 +8,7 @@ import (
|
||||
"os/exec"
|
||||
"sync"
|
||||
"time"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -94,6 +95,10 @@ func Restart(appname string) {
|
||||
|
||||
func Start(appname string) {
|
||||
fmt.Println("start", appname)
|
||||
|
||||
if strings.Index(appname, "./") == -1 {
|
||||
appname = "./" + appname
|
||||
}
|
||||
|
||||
cmd = exec.Command(appname)
|
||||
cmd.Stdout = os.Stdout
|
||||
|
Loading…
Reference in New Issue
Block a user