feat: switch to updateScalefile from generateScalefile
The process is the same.
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user