Skip to content

Commit

Permalink
Modified run command so launching command would be properly treated
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 14, 2020
1 parent 2e2f22a commit ebc9c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion harness/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion revel/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit ebc9c73

Please sign in to comment.