Skip to main content

start_server

Function start_server 

Source
pub async fn start_server(
    database: Option<String>,
    setopt: Option<(String, String)>,
) -> Result<()>
Expand description

Boot the server the same way the original CLI entrypoint did: install drivers, run migrations, load config. Used by both binaries so the initialization sequence stays identical.

ยงErrors

Returns an anyhow::Error if database conflicts with an already resolved database URL, if the boot task fails or is aborted, or if set_system_config fails for the optional setopt override.