mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
env args fix
This commit is contained in:
parent
5118cd348d
commit
723ddb4060
4
watch.go
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…
Reference in New Issue
Block a user