fix: respect the .missing file and the process-specific procfile when fetching the a procfile command
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user