Modified run command so launching command would be properly treated

This commit is contained in:
notzippy@gmail.com
2020-07-13 22:35:22 -07:00
parent 2e2f22ad7d
commit ebc9c73ba0
2 changed files with 3 additions and 2 deletions

View File

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