Closed Clovel closed 2 years ago
Hello,
That's a toggle we implemented in the first version of the Docker images, because as you know PrestaShop redirects the user when the URL stored in the database does not match. At each restart the IP changes, so it was easier to use this toggle to keep the shop accessible.
This file is supposed to be called at the container startup.
This file is supposed to be called at the container startup.
I have a use case when on DNS domain change, I automatically restart the container after backing it up in a private docker registry. Thus the need to regenerate lots of things, such as the cache or the htaccess.
Also, as per my testing, I don't need to restart the container for this code to be executed.
These lines basically come from the back-office domain change feature.
Any news on this ? It seems to have been approved twice over.
I think it's safe to be merged 👍 thank you @Clovel
Signed-off-by: Clovis Durand cd.clovel19@gmail.com
This was tested by inserting the 4 new lines of code in a running instance of PrestaShop in a Docker container. 2 images were used in the test :
bitnami/mariadb:latest
prestashop/prestashop:latest
Test was conducted in late July of 2022.