chore: use helper to check if there is a Procfile
This commit is contained in:
1 parent
a53ead6c64
commit
3f82c525ad
1 file changed
+1
-3
@@ -261,9 +261,7 @@ func TriggerPreDeploy(appName string, imageTag string) error {
|
|||||||
|
|
||||||
// TriggerProcfileGetCommand fetches a command from the procfile
|
// TriggerProcfileGetCommand fetches a command from the procfile
|
||||||
func TriggerProcfileGetCommand(appName string, processType string, port int) error {
|
func TriggerProcfileGetCommand(appName string, processType string, port int) error {
|
||||||
existingProcfile := getProcfilePath(appName)
|
if !hasProcfile(appName) {
|
||||||
processSpecificProcfile := fmt.Sprintf("%s.%s", existingProcfile, os.Getenv("DOKKU_PID"))
|
|
||||||
if common.FileExists(fmt.Sprintf("%s.missing", processSpecificProcfile)) {
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user