Provides helper to set web app in maintenance mode. This is useful when using automated deploying processes, ensuring website is properly inaccessible during the deploy process.
This bundle provides a flat html fil for maintenance splash screen. This is done to avoid generating cache during the maintenance time.
composer require lch/maintenance-bundle
Use the command to toggle maintenance mode :
php bin/console lch:maintenance:mode 1
for enabling maintenance (creates a.maintenance
file inpublic/
)php bin/console lch:maintenance:mode 0
for disabling maintenance (remove the.maintenance
file inpublic/
)
When maintenance mode is on, static splash html page will be served with a 503 HTTP code.
- make html file configurable
- add options
- Enhance exceptions
- ...