Check if your symfony application is ready for deployment

"Website Temporarily Unavailable" error page
  • high
  • design

A symfony website can be displayed as unavailable:

  • When an application has been disable by php symfony project:disable
  • During the cache clearing, if the check_lock option is checked in settings.yml

In these cases, symfony looks for a unavailable.php file and let you choose where you prefer to put it:

  1. At mySfProject/apps/frontend/config/unavailable.php

    Useful if you want to have a different version for each application

  2. In mySfProject/config/unavailable.php

    The main configuration folder of your project

Website Temporarily Unavailable

If you want, you can grab the original file and modify it.

Don't forget to clear your cache.

Display the "Website Temporarily Unavailable" page to test it

Disable your frontend in dev environement.

  php symfony project:disable frontend dev