From a8ccc7d2a73fa1a71f3c6d9e3bc8ad2a45c561ff Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 18 Nov 2020 00:36:35 -0500 Subject: [PATCH] feat: generate the scale file after app creation The web process always starts off at `1`, so this is relatively benign. --- plugins/ps/triggers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ps/triggers.go b/plugins/ps/triggers.go index c192e5517..6decd3f80 100644 --- a/plugins/ps/triggers.go +++ b/plugins/ps/triggers.go @@ -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