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 theConfig
struct containing deployment informationrollback
- A reference to theRollbackManager
for creating snapshots
§Returns
Returns Ok(())
if all applications are deployed successfully, or an error if any deployment fails.