Function server_forge::deployment::deploy_applications

source ·
pub fn deploy_applications(
    config: &Config,
    rollback: &RollbackManager,
) -> Result<(), Box<dyn Error>>
Expand description

Deploys all applications specified in the configuration.

This function iterates through the list of applications specified in the configuration and deploys each one. It creates a snapshot before deployment for potential rollback.

§Arguments

  • config - A reference to the Config struct containing deployment information
  • rollback - A reference to the RollbackManager for creating snapshots

§Returns

Returns Ok(()) if all applications are deployed successfully, or an error if any deployment fails.