Description
This command will set a generic maintenance mode message with an optional email address. You will be prompted with a confirmation message before the site is brought down.
You can also manually trigger the maintenance mode by creating a .maintenance
file in the root of your Kirby installation. The contents of this file will be used as the email address.
Users who are logged in will still be able to visit the site.
You can always override the default snippet by creating a site/snippets/x/maintenance.php
file. In this snippet you can use $email
to show the email address. (Keep in mind this also can be empty if no email is configured). The default snippet will first look if a $site->email()
exists and if not it will use the email from the .maintenance
file. If no email is configured it will show a generic message.