From 3f82c525adf6d395d483274b78960411ac1cee37 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 29 Dec 2022 01:21:09 -0500 Subject: [PATCH] chore: use helper to check if there is a Procfile --- plugins/ps/triggers.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/ps/triggers.go b/plugins/ps/triggers.go index f7c221cd8..6218011e1 100644 --- a/plugins/ps/triggers.go +++ b/plugins/ps/triggers.go @@ -261,9 +261,7 @@ func TriggerPreDeploy(appName string, imageTag string) error { // TriggerProcfileGetCommand fetches a command from the procfile func TriggerProcfileGetCommand(appName string, processType string, port int) error { - existingProcfile := getProcfilePath(appName) - processSpecificProcfile := fmt.Sprintf("%s.%s", existingProcfile, os.Getenv("DOKKU_PID")) - if common.FileExists(fmt.Sprintf("%s.missing", processSpecificProcfile)) { + if !hasProcfile(appName) { return nil }