env args fix

pull/12/head
slene 9 years ago
parent 5118cd348d
commit 723ddb4060
  1. 4
      watch.go

@ -179,8 +179,8 @@ func Start(appname string) {
cmd = exec.Command(appname)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Args = conf.CmdArgs
cmd.Env = conf.Envs
cmd.Args = append([]string{appname}, conf.CmdArgs...)
cmd.Env = append(os.Environ(), conf.Envs...)
go cmd.Run()
ColorLog("[INFO] %s is running...\n", appname)

Loading…
Cancel
Save