chore: use helper to check if there is a Procfile

This commit is contained in:
Jose Diaz-Gonzalez
2022-12-29 01:21:09 -05:00
parent a53ead6c64
commit 3f82c525ad

View File

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