From cae561f7b994c0adbc433dcf516e350f1e05dee2 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 1 Nov 2020 17:42:09 -0500 Subject: [PATCH] feat: extract procfile when fetching command as necessary --- plugins/ps/triggers.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/ps/triggers.go b/plugins/ps/triggers.go index 1b8da30a1..63b85e6bd 100644 --- a/plugins/ps/triggers.go +++ b/plugins/ps/triggers.go @@ -162,6 +162,12 @@ func TriggerProcfileExtract(appName string, image string) error { func TriggerProcfileGetCommand(appName string, processType string, port int) error { procfilePath := getProcfilePath(appName) + if !common.FileExists(procfilePath) { + image := common.GetDeployingAppImageName(appName, "", "") + if err := common.PlugnTrigger("procfile-extract", []string{appName, image}...); err != nil { + return err + } + } command, err := getProcfileCommand(procfilePath, processType, port) if err != nil { return err