mirror of
https://github.com/beego/bee.git
synced 2024-11-26 06:21:34 +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 = exec.Command(appname)
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
cmd.Args = conf.CmdArgs
|
cmd.Args = append([]string{appname}, conf.CmdArgs...)
|
||||||
cmd.Env = conf.Envs
|
cmd.Env = append(os.Environ(), conf.Envs...)
|
||||||
|
|
||||||
go cmd.Run()
|
go cmd.Run()
|
||||||
ColorLog("[INFO] %s is running...\n", appname)
|
ColorLog("[INFO] %s is running...\n", appname)
|
||||||
|
Loading…
Reference in New Issue
Block a user