From ebc9c73ba0099fdbf18ed9223088eedcc81b7f23 Mon Sep 17 00:00:00 2001 From: "notzippy@gmail.com" Date: Mon, 13 Jul 2020 22:35:22 -0700 Subject: [PATCH] Modified run command so launching command would be properly treated --- harness/app.go | 3 ++- revel/run.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/harness/app.go b/harness/app.go index d3abc26..24ab4ee 100644 --- a/harness/app.go +++ b/harness/app.go @@ -93,7 +93,8 @@ func (cmd AppCmd) Start(c *model.CommandConfig) error { } // Run the app server inline. Never returns. -func (cmd AppCmd) Run() { +func (cmd AppCmd) Run(c *model.CommandConfig) { + utils.CmdInit(cmd.Cmd, !c.Vendored, c.AppPath) utils.Logger.Info("Exec app:", "path", cmd.Path, "args", cmd.Args) if err := cmd.Cmd.Run(); err != nil { utils.Logger.Fatal("Error running:", "error", err) diff --git a/revel/run.go b/revel/run.go index 93f22e6..b04f9f6 100644 --- a/revel/run.go +++ b/revel/run.go @@ -162,6 +162,6 @@ func runApp(c *model.CommandConfig) (err error) { if c.HistoricMode { runMode = revel_path.RunMode } - app.Cmd(runMode).Run() + app.Cmd(runMode).Run(c) return }