Function server_forge::deployment::deploy_app
source · pub fn deploy_app(app: &str, server_role: &str) -> Result<(), Box<dyn Error>>
Expand description
Deploys a single application based on its type and the server role.
§Arguments
app
- A string slice representing the application to deployserver_role
- A string slice representing the role of the server (e.g., “web”, “database”)
§Returns
Returns Ok(())
if the application is deployed successfully, or an error if deployment fails.