mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #31311
[Bug 1517279] Re: CLI tool for maintenance mode
Hi Evan,
I just emailed this thought to you, but it'd be good to have it here on
the Launchpad tracker too. :)
If you're switching maintenance mode on and off during your upgrades,
you should know that it doesn't actually affect the user experience
during upgrade. When Mahara detects a core upgrade that's ready to go,
any user who visits the site gets logged out to the homepage, and the
homepage shows a message that reads "The site is temporarily closed for
a database upgrade." and a link that reads "Perform the upgrade now",
which will kick off the upgrade.
Switching the site into maintenance mode actually has no effect on this.
People see the "Perform the upgrade now" link whether maintenance mode
is on or off.
I'm guessing it was done this way because you can't be sure the auth
plugins will be functional until the upgrade is completed, so therefore
a logged-out Mahara user needs to be able to initiate the upgrade.... if
you're a site that is not using CLI scripts for some reason.
For your purposes, though, it would probably be a better idea to add a
config option that forces core upgrades to only be run via the command-
line, and which hides that "Perform the upgrade now" link. This could be
done with a new $cfg option document in htdocs/lib/config-defaults.php
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1517279
Title:
CLI tool for maintenance mode
Status in Mahara:
New
Bug description:
I would like the ability to enter and exit from maintenance mode from
the command line.
...because we automate our deployments, and currently, we have php code
embedded inside a shell script to accomplish entering and exiting from
maintenance mode. This is really ugly.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1517279/+subscriptions
References