php - How to add a custom "under maintenance" page?
780
I'm trying to add a custom page to my web application for the times I'm performing maintenance.
I'm trying to test the referred page on my development environment but the Symfony page always appears. I had already created a module with a proper action and template and also configured those on thesettings.yml
file.
Answer
Solution:
Have you tried this: "Website Temporarily Unavailable" error page
Answer
Solution:
In your app's settings.yml set these:
In the module's module.yml set this:
This will disable the your module for prod environment, but it will still be available for dev and test environments.
Hope it helps. Regards, Radu.