fix: correct issue with app autocreation

This commit is contained in:
Jose Diaz-Gonzalez
2020-03-11 01:00:10 -04:00
parent 7fd1882dbb
commit 0be0ad7ef7
2 changed files with 4 additions and 3 deletions

View File

@@ -149,7 +149,8 @@ func maybeCreateApp(appName string) error {
return nil
}
disableAutocreate := os.Getenv("DOKKU_GLOBAL_DISABLE_AUTOCREATE")
b, _ := common.PlugnTriggerOutput("config-get-global", []string{"DOKKU_DISABLE_APP_AUTOCREATION"}...)
disableAutocreate := string(b[:])
if disableAutocreate == "true" {
common.LogWarn("App auto-creation disabled.")
return fmt.Errorf("Re-enable app auto-creation or create an app with 'dokku apps:create %s'", appName)