feat: generate the scale file after app creation

The web process always starts off at `1`, so this is relatively benign.
This commit is contained in:
Jose Diaz-Gonzalez
2020-11-18 00:36:35 -05:00
parent 0a533c754f
commit a8ccc7d2a7

View File

@@ -6,10 +6,10 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
sh "github.com/codeskyblue/go-sh"
"github.com/dokku/dokku/plugins/common" "github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/config" "github.com/dokku/dokku/plugins/config"
dockeroptions "github.com/dokku/dokku/plugins/docker-options" dockeroptions "github.com/dokku/dokku/plugins/docker-options"
sh "github.com/codeskyblue/go-sh"
) )
func TriggerAppRestart(appName string) error { func TriggerAppRestart(appName string) error {
@@ -93,7 +93,7 @@ func TriggerPostCreate(appName string) error {
return err return err
} }
return nil return generateScalefile(appName)
} }
// TriggerPostDelete destroys the ps properties for a given app container // TriggerPostDelete destroys the ps properties for a given app container