caprover / caprover-cli

Command Line Interface for https://github.com/caprover/caprover
72 stars 40 forks source link

updateConfigAndSave missing some methods #144

Open khromov opened 2 months ago

khromov commented 2 months ago

👋 I'm making a CapRover migration script (moving an app from one server to another) and I need to be able to replicate the configuration between two apps. I am using the ApiManager class and have found that ApiManager.updateConfigAndSave() is missing several variables:

containerHttpPort
redirectDomain
serviceUpdateOverride
websocketSupport

The most important ones for me are containerHttpPort and websocketSupport but ideally all possible params should be added.

There are also some that I'm not sure are perhaps internal variables (can't see them in the console) but they are being sent from the web control panel when saving an app:

appDeployTokenConfig
captainDefinitionRelativeFilePath