diff --git a/plugins/ps/functions.go b/plugins/ps/functions.go index 45fcfa151..a4ddd52fa 100644 --- a/plugins/ps/functions.go +++ b/plugins/ps/functions.go @@ -2,6 +2,7 @@ package ps import ( "bytes" + "errors" "fmt" "os" "path/filepath" @@ -101,6 +102,10 @@ func generateScalefile(appName string, destination string) error { } func getProcfileCommand(procfilePath string, processType string, port int) (string, error) { + if !common.FileExists(procfilePath) { + return "", errors.New("No procfile found") + } + shellCmd := common.NewShellCmd(strings.Join([]string{ "procfile-util", "show",