feat: switch to updateScalefile from generateScalefile

The process is the same.
This commit is contained in:
Jose Diaz-Gonzalez committed 2020-11-21 20:57:33 -05:00
1 parent 44ce5c76ae
commit bc9a60f696
3 files changed
+3 -3

No files matched your search

+1 -1
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...")
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()))
return err
}
+1 -1
View File
@@ -108,7 +108,7 @@ func CommandScale(appName string, skipDeploy bool, processTuples []string) error
if !hasScaleFile(appName) {
err := common.SuppressOutput(func() error {
return generateScalefile(appName)
return updateScalefile(appName, make(map[string]int))
})
if err != nil {
return err
+1 -1
View File
@@ -93,7 +93,7 @@ func TriggerPostCreate(appName string) error {
return err
}
return generateScalefile(appName)
return updateScalefile(appName, make(map[string]int))
}
// TriggerPostDelete destroys the ps properties for a given app container