Function server_forge::containerization::deploy_containers
source · pub fn deploy_containers(
config: &Config,
rollback: &RollbackManager,
) -> Result<(), Box<dyn Error>>
Expand description
Deploys containers for all applications specified in the configuration.
This function iterates through the list of applications in the configuration and deploys each as a container, either using Docker or Kubernetes based on the configuration.
§Arguments
config
- A reference to theConfig
struct containing deployment informationrollback
- A reference to theRollbackManager
for creating snapshots
§Returns
Returns Ok(())
if all containers are deployed successfully, or an error if any deployment fails.