exp:maintenance
Take the site offline for maintenance and back: on, off or status.
Script bin/php/maintenance.php, code in kernel/private/classes/commands/maintenance.php. Run it from the installation root, as the user the web server runs as:
./console exp:maintenance --help
php bin/php/maintenance.php --helpHelp text
Maintenance mode: take the site offline and back
maintenance.php on|off|status [options]Options
| Option | Value | Help |
|---|---|---|
--message | required | What the page says, instead of the default text |
--until | required | When the site is expected back: 30m, 2h, or a date and time |
--allow-ip | required | Addresses that still see the site, comma separated |
--allow-admin | Keep the administration (/admin) reachable |
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 ...).
Arguments: [action].
Related
Generated by ./console exp:help:examples from bin/php/maintenance.php, kernel/private/classes/commands/maintenance.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.