pub fn serve(
    dir: PathBuf,
    opts: ServeOpts
) -> Result<(i32, Option<String>), ExecutionError>
Expand description

Builds the subcrates to get a directory that we can serve and then serves it. If possible, this will return the path to the server executable so that it can be used in deployment.