Function server_forge::deployment::deploy_nginx

source ·
pub fn deploy_nginx() -> Result<(), Box<dyn Error>>
Expand description

Deploys and configures the Nginx web server.

This function installs Nginx using the appropriate package manager, starts the Nginx service, and enables it to start on boot.

§Returns

Returns Ok(()) if Nginx is deployed successfully, or an error if deployment fails.