fix: respect the .missing file and the process-specific procfile when fetching the a procfile command
This commit is contained in:
1 parent
1455390dd3
commit
231e562b8d
1 file changed
+7
-2
@@ -251,8 +251,13 @@ 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 {
|
||||||
procfilePath := getProcfilePath(appName)
|
existingProcfile := getProcfilePath(appName)
|
||||||
command, err := getProcfileCommand(procfilePath, processType, port)
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user