Merge pull request #15 from wangxian/master

fixed: Support bee start appname && bee start ./appname
This commit is contained in:
astaxie 2013-07-22 07:06:44 -07:00
commit 7e4fd3f528
1 changed files with 5 additions and 0 deletions

View File

@ -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