exp:upgradefinish
Upgrade stage 5, finish: deploy the changes (exp:velocity deploy --kernel) and check the site answers (dry run unless --apply).
Script bin/php/upgradefinish.php, code in kernel/private/classes/commands/upgradefinish.php. Run it from the installation root, as the user the web server runs as:
./console exp:upgradefinish --help
./console exp:upgrade:finish --help
php bin/php/upgradefinish.php --helpHelp text
Upgrade stage 5: finish
Makes the changes live with ./console exp:velocity deploy --kernel (autoloads, INI and template
caches, PHP-FPM, Velocity, the output caches, the help content cache), then requests the front
page (or each --url) and fails when it does not answer 200 to 399. --no-deploy: autoloads and
caches only. Run on its own it always has work; inside exp:upgrade only when the run changed
something. Dry run unless --apply.
./console exp:upgrade:finish --apply
./console exp:upgrade:finish --apply --no-deploy
./console exp:upgrade:finish --apply --url=https://www.example.com/,https://admin.example.com/Options
| Option | Value | Help |
|---|---|---|
--apply | Make the changes (the default is a dry run that lists them and changes nothing) | |
--dry-run | The default, accepted for scripts that pass it: list what would change, change nothing | |
--only | required | Only these steps (step ids, a comma list or repeated); an optional step runs only when named here |
--skip | required | Never these steps (step ids, a comma list or repeated) |
--format | required | text (default) or json (the machine output exp-upgrade/1) |
--no-backup | Write without making a backup first | |
--backup-dir | required | Where the backup goes (default var/backup/upgrade); a directory <time> is made in it |
--force-order | Run a stage although an earlier stage has pending steps | |
--fail-on-pending | Exit 1 when steps are still pending (for CI) | |
--force-no-backup | With --no-backup on a production installation: write without a backup all the same | |
--no-caption | Write without taking a caption first (the same as --no-backup); refused on production without --force-no-caption | |
--force-no-caption | With --no-caption on a production installation: write without a caption all the same | |
--no-deploy | Finish without exp:velocity deploy: extension autoloads and the INI, template and content caches only | |
--url | required | The addresses the smoke check requests after the deploy (a comma list or repeated); default the front page of SiteURL |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/upgradefinish.php, kernel/private/classes/commands/upgradefinish.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.