diff --git a/plugins/ps/triggers.go b/plugins/ps/triggers.go index ee3f133c8..a5c7f317e 100644 --- a/plugins/ps/triggers.go +++ b/plugins/ps/triggers.go @@ -80,6 +80,11 @@ func TriggerCorePostExtract(appName string, sourceWorkDir string) error { if appSourceImage == "" { repoProcfilePath := path.Join(sourceWorkDir, procfilePath) if !common.FileExists(repoProcfilePath) { + if procfilePath != "Procfile" && common.FileExists(repoDefaultProcfilePath) { + if err := os.Remove(repoDefaultProcfilePath); err != nil { + return err + } + } return common.TouchFile(fmt.Sprintf("%s.missing", processSpecificProcfile)) }