Skip to the content
Documentation

exp:expstaticbuild

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Build a static copy of a target's siteaccess into its folder (static publishing): crawled as the anonymous user, links rewritten, files collected, extras and manifest written

Usage

./console exp:expstaticbuild [options]
php bin/php/expstaticbuild.php [options]
./console exp:static:build [options]

Aliases

exp:static:build

Options

Option Value Description
--full - Crawl the whole site (the default without --paths or --nodes); not with --paths or --nodes
--paths required Build only these pages, by their path in the copy (/about-us, /ger/about-us for a siteaccess in a folder; a comma list or repeated); the rest of the last build stays
--nodes required Build only the pages of these nodes (node ids; a comma list or repeated), in each siteaccess of the target; the rest of the last build stays
--dry-run - Build into the staging folder, report what would change and leave the target folder as it is
--report required Also write the report (exp-static/1, JSON) to this file
--format required text (default) or json (the machine output exp-static/1)
--crawl-url required Fetch the pages from this address instead of the target's CrawlURL or the siteaccess's SiteURL (http://127.0.0.1:8080)
--max-pages required Stop the crawl after this many pages (default the target's MaxPages)
--keep-staging - Keep the staging folder of the build (its path is in the report) instead of removing it
--login required Run as this user (the administration starts its jobs so); recorded as who ran it
--run-id required The id of the run (date-time-6 hex digits) instead of a new one (the administration passes its job's id)
--progress required Also append the progress, one JSON object per line, to this file (the administration follows it)
--only-siteaccess required Build only this one of the target's siteaccesses (a target of several, SiteAccessList[]); the others' pages of the last build stay

Arguments

[target]

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/expstaticbuild.php, kernel/private/classes/commands/expstaticbuild.php

See also

Generated example: exp:expstaticbuild

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.