refactor: remove support for DOKKU_SCALE file

It has been replaced by the 'formations' key within the 'app.json' file format.
This commit is contained in:
Jose Diaz-Gonzalez
2023-01-15 23:53:03 -05:00
parent e22d74febb
commit 5dcc1cb13c
18 changed files with 29 additions and 91 deletions

View File

@@ -149,23 +149,11 @@ func TriggerInstall() error {
for _, appName := range apps {
dokkuScaleFile := filepath.Join(common.AppRoot(appName), "DOKKU_SCALE")
if common.FileExists(dokkuScaleFile) {
processTuples, err := common.FileToSlice(dokkuScaleFile)
if err != nil {
return err
}
if err := scaleSet(appName, true, false, processTuples); err != nil {
return err
}
os.Remove(dokkuScaleFile)
}
dokkuScaleExtracted := filepath.Join(common.AppRoot(appName), "DOKKU_SCALE.extracted")
if common.FileExists(dokkuScaleExtracted) {
if err := common.PropertyWrite("ps", appName, "can-scale", strconv.FormatBool(false)); err != nil {
return err
}
os.Remove(dokkuScaleExtracted)
}
}