feat: extract procfile when fetching command as necessary

This commit is contained in:
Jose Diaz-Gonzalez
2020-11-01 17:42:09 -05:00
parent f9969a0e61
commit cae561f7b9

View File

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