Function perseus_cli::serve

source ·
pub fn serve(
    dir: PathBuf,
    opts: &ServeOpts,
    tools: &Tools,
    global_opts: &Opts
) -> 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.