This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.
Maintenance Page¶
Installation¶
Debian/Ubuntu users:
If you followed the instructions in Setup a DevOps Work Machine, you’ll find the
tocco-mntnc
command already installed.
non-Debian/Ubuntu users:
Clone the Git repository:
cd ~/src/
git clone https://gitlab.com/toccoag/maintenance-page.git
Then use the ./mntnc
script in the repository instead of the
tocco-mntnc
command.
Example:
cd ~/src/maintenance-page
./mntnc status # instead of `tocco-mntnc status`
Usage¶
Login
oc login
Go to the project where the maintenance page should be deployed (e.g.
oc project nice-master
)Enable maintenance page
tocco-mntnc start [-t "24.12.2020 6:00"]
Selected options:
-t
/--till
: date/time until the application is unavailable If the argument is present, the message is Please try again on [date/time]. Else the more generic message Please try again later. is shown.-h
/--help
: see all available options
Disable/enable bypass as needed via /_maintenance/bypass URL. Exact URL is printed by
tocco-mntnc start
.Disable maintenance page
tocco-mntnc stop