-
Notifications
You must be signed in to change notification settings - Fork 1
Description
We should have an easy way to show/hide the scheduled maintenance message. This should be done via a Rex task.
There should be two Rex tasks: One to show the downtime message, one to hide it and return to normal operation. The Rex tasks should work via Debian's default Apache config tools: a2ensite
and a2dissite
. The downtime message should be its own site config, and the Rex task should enable/disable the appropriate sites as needed.
Everything about the downtime message should be in the cpantesters-deploy
project, including the site config file, and the downtime message HTML itself. The user should be prompted to update the downtime message (by opening $EDITOR
locally) before uploading it to the server and enabling it.
In order for the message to be displayed, the Fastly cache will need to be cleared. This should be done via an API if possible, otherwise the user should be instructed to clear the Fastly cache manually.