Differenze tra le versioni di "Maintenance mode"
Vai alla navigazione
Vai alla ricerca
(Creata pagina con "The [https://atlas.landscapefor.eu/ AtlasFor] system has a nice '''maintenance mode'''. When enabling the maintenance mode you will see a cute splash screen that does not est...") |
(intenral) |
||
Riga 1: | Riga 1: | ||
+ | {{Documentazione interna}} | ||
The [https://atlas.landscapefor.eu/ AtlasFor] system has a nice '''maintenance mode'''. | The [https://atlas.landscapefor.eu/ AtlasFor] system has a nice '''maintenance mode'''. | ||
Versione attuale delle 15:26, 16 set 2021
Questa pagina o sezione è una documentazione interna utile ai soli operatori interni AtlasFor
The AtlasFor system has a nice maintenance mode.
When enabling the maintenance mode you will see a cute splash screen that does not establish any database connection. So you can do any database maintenance or any operating system upgrade without breaking any MySQL or MariaDB transaction.
Enable maintenance mode
From the application
The maintenance mode can be enabled declaring this constant from the bottom of your load.php
:
// enable AtlasFor maintenance mode define( 'MAINTENANCE', true );
From the webserver
The maintenance mode is also enabled when the webserver declares the environment variable DATABASE_MAINTENANCE
. Using Apache HTTPd this can be achieved declaring this in /etc/apache2/envvars
(or any similar configuration file):
# enable AtlasFor maintenance mode export DATABASE_MAINTENANCE=1
Then restart your webserver:
sudo systemctl restart apache2