Skip to main content

apply

Function apply 

Source
pub async fn apply(
    pool: &Pool,
    seed_json: &str,
) -> Result<Outcome, StarterError>
Expand description

Apply a starter theme to one site (a tenant pool), once. Its sample pictures are left out; see apply_with_media.

ยงErrors

An invalid theme.json, or a database error part-way. The steps are not one transaction: after a failure the site has some pages, so a retry reports Outcome::SiteNotEmpty instead of duplicating them.