feat: create proxy:build-config command

Closes #4024
This commit is contained in:
Jose Diaz-Gonzalez
2020-06-29 20:17:23 -04:00
parent 90b3528f6b
commit eaf0d9af55
10 changed files with 36 additions and 12 deletions

View File

@@ -8,6 +8,19 @@ import (
"github.com/dokku/dokku/plugins/config"
)
// CommandBuildConfig rebuilds config for a given app
func CommandBuildConfig(appName string) error {
if appName == "" {
return errors.New("Please specify an app to run the command on")
}
if err := common.VerifyAppName(appName); err != nil {
return err
}
return common.PlugnTrigger("proxy-build-config", []string{appName}...)
}
// CommandDisable disables the proxy for app via command line
func CommandDisable(appName string, skipRestart bool) error {
if appName == "" {