1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 20:10:55 +00:00

env args fix

This commit is contained in:
slene 2013-11-27 13:15:00 +08:00
parent 5118cd348d
commit 723ddb4060

View File

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