feat: switch to updateScalefile from generateScalefile

The process is the same.
This commit is contained in:
Jose Diaz-Gonzalez
2020-11-18 12:28:44 -05:00
parent 44ce5c76ae
commit bc9a60f696
3 changed files with 3 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ func extractOrGenerateScalefile(appName string, image string) error {
} }
common.LogInfo1Quiet("DOKKU_SCALE file not found in app image. Generating one based on Procfile...") common.LogInfo1Quiet("DOKKU_SCALE file not found in app image. Generating one based on Procfile...")
if err := generateScalefile(appName); err != nil { if err := updateScalefile(appName, make(map[string]int)); err != nil {
common.LogDebug(fmt.Sprintf("Error generating scale file: %s", err.Error())) common.LogDebug(fmt.Sprintf("Error generating scale file: %s", err.Error()))
return err return err
} }

View File

@@ -108,7 +108,7 @@ func CommandScale(appName string, skipDeploy bool, processTuples []string) error
if !hasScaleFile(appName) { if !hasScaleFile(appName) {
err := common.SuppressOutput(func() error { err := common.SuppressOutput(func() error {
return generateScalefile(appName) return updateScalefile(appName, make(map[string]int))
}) })
if err != nil { if err != nil {
return err return err

View File

@@ -93,7 +93,7 @@ func TriggerPostCreate(appName string) error {
return err return err
} }
return generateScalefile(appName) return updateScalefile(appName, make(map[string]int))
} }
// TriggerPostDelete destroys the ps properties for a given app container // TriggerPostDelete destroys the ps properties for a given app container