lch / maintenance-bundle
Symfony LchMaintenanceBundle
Package info
github.com/compagnie-hyperactive/MaintenanceBundle
Type:symfony-bundle
pkg:composer/lch/maintenance-bundle
0.1.2
2020-11-20 16:22 UTC
Requires
- php: ^7.2
- symfony/console: ^4.2
- symfony/filesystem: ^4.2
- symfony/framework-bundle: ^4.2
Requires (Dev)
- symfony/phpunit-bridge: ^4.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
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.
Installation
composer require lch/maintenance-bundle
Usage
Use the command to toggle maintenance mode :
php bin/console lch:maintenance:mode 1for enabling maintenance (creates a.maintenancefile inpublic/)php bin/console lch:maintenance:mode 0for disabling maintenance (remove the.maintenancefile inpublic/)
When maintenance mode is on, static splash html page will be served with a 503 HTTP code.
TODO
- make html file configurable
- add options
- Enhance exceptions
- ...