The config file is not read on change
Posted: Wed Nov 04, 2020 10:35 am
Hi!
I am currently testing nuBuilder and its functions. While testing, with a college, we figured out that the nuconfig.php file is not read on an update. How can I force nuBuilder to reload the configuration?
How to recreate:
On a LAMP-Server install nuBuilder and open the website. Then change the nuconfig.php to point to another (remote) database.
Problem:
It will still load the old (localhost) database.
For us, it did fix itself after a while of waiting and restarting the Webserver. This would be a big problem in a production environment where we might need to hot-swap to a standby database or in a testing environment where you want to change the database quite often.
I am currently testing nuBuilder and its functions. While testing, with a college, we figured out that the nuconfig.php file is not read on an update. How can I force nuBuilder to reload the configuration?
How to recreate:
On a LAMP-Server install nuBuilder and open the website. Then change the nuconfig.php to point to another (remote) database.
Problem:
It will still load the old (localhost) database.
For us, it did fix itself after a while of waiting and restarting the Webserver. This would be a big problem in a production environment where we might need to hot-swap to a standby database or in a testing environment where you want to change the database quite often.