mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Modified run command so launching command would be properly treated
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user