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 committed 2020-11-21 20:57:33 -05:00
1 parent 0a533c754f
commit a8ccc7d2a7
1 file changed
+2 -2
+2 -2
View File
@@ -6,10 +6,10 @@ import (
"path/filepath"
"strings"
sh "github.com/codeskyblue/go-sh"
"github.com/dokku/dokku/plugins/common"
"github.com/dokku/dokku/plugins/config"
dockeroptions "github.com/dokku/dokku/plugins/docker-options"
sh "github.com/codeskyblue/go-sh"
)
func TriggerAppRestart(appName string) error {
@@ -93,7 +93,7 @@ func TriggerPostCreate(appName string) error {
return err
}
return nil
return generateScalefile(appName)
}
// TriggerPostDelete destroys the ps properties for a given app container