Skip to main content

deploy_application

Function deploy_application 

Source
pub async fn deploy_application(
    app_name: Option<String>,
    port: Option<u16>,
    app_dir: Option<PathBuf>,
    config_path: Option<PathBuf>,
    debug: bool,
) -> Result<(), String>
Expand description

Execute advanced deployment with automatic project detection

§Arguments

  • app_name - Optional application name (will be detected from project if not provided)
  • port - Optional port number (will use default based on project type if not provided)
  • app_dir - Optional application directory (defaults to current directory)
  • config_path - Optional path to xbp.yaml/xbp.json configuration file
  • debug - Whether to enable debug output

§Returns

  • Ok(()) if deployment was successful
  • Err(String) if deployment failed