feat: use --all flag for clearing proxy config during ps:restore

Without this, we might end up with one or more apps that still have a proxy config.
This commit is contained in:
Jose Diaz-Gonzalez
2022-01-28 20:18:36 -05:00
parent c75149fb9f
commit 3b0bf4d8f2

View File

@@ -218,16 +218,8 @@ func removeProcfile(appName string) error {
}
func restorePrep() error {
apps, err := common.DokkuApps()
if err != nil {
common.LogWarn(err.Error())
return nil
}
for _, appName := range apps {
if err := common.PlugnTrigger("proxy-clear-config", []string{appName}...); err != nil {
return fmt.Errorf("Error clearing proxy config: %s", err)
}
if err := common.PlugnTrigger("proxy-clear-config", []string{"--all"}...); err != nil {
return fmt.Errorf("Error clearing proxy config: %s", err)
}
return nil