fix: always respect app.json formations in scale settings

Without this change, it was possible would end up in a state where we might still try to scale processes up that no longer exists.

Closes #5205
This commit is contained in:
Jose Diaz-Gonzalez
2022-06-26 14:31:08 -04:00
parent 515eb372a4
commit dded26625b
4 changed files with 105 additions and 1 deletions

View File

@@ -497,7 +497,7 @@ func setScale(appName string, image string) error {
}
skipDeploy := true
clearExisting := false
clearExisting := true
args := []string{appName, strconv.FormatBool(skipDeploy), strconv.FormatBool(clearExisting)}
for processType, formation := range appJSON.Formation {
if formation.Quantity != nil {