diff --git a/plugins/ps/triggers.go b/plugins/ps/triggers.go index 5def5f1b6..1fd5cf03d 100644 --- a/plugins/ps/triggers.go +++ b/plugins/ps/triggers.go @@ -251,8 +251,13 @@ func TriggerPreDeploy(appName string, imageTag string) error { // TriggerProcfileGetCommand fetches a command from the procfile func TriggerProcfileGetCommand(appName string, processType string, port int) error { - procfilePath := getProcfilePath(appName) - command, err := getProcfileCommand(procfilePath, processType, port) + existingProcfile := getProcfilePath(appName) + processSpecificProcfile := fmt.Sprintf("%s.%s", existingProcfile, os.Getenv("DOKKU_PID")) + if common.FileExists(fmt.Sprintf("%s.missing", processSpecificProcfile)) { + return nil + } + + command, err := getProcfileCommand(getProcessSpecificProcfile(appName), processType, port) if err != nil { return err }