drenso / symfony-deployer-bundle
Deploy scripting bundle for Symfony
Package info
github.com/Drenso/symfony-deployer
Language:HTML
Type:symfony-bundle
pkg:composer/drenso/symfony-deployer-bundle
Fund package maintenance!
Requires
- php: >=8.2
- ext-hash: *
- doctrine/doctrine-bundle: ^2.11 || ^3
- doctrine/orm: ^3.0
- symfony/asset: ^5.4 || ^6.4 || ^7.4 || ^8.1
- symfony/config: ^5.4 || ^6.4 || ^7.4 || ^8.1
- symfony/console: ^5.4 || ^6.4 || ^7.4 || ^8.1
- symfony/dependency-injection: ^5.4 || ^6.4 || ^7.4 || ^8.1
- symfony/filesystem: ^5.4 || ^6.4 || ^7.4 || ^8.1
- symfony/http-kernel: ^5.4 || ^6.4 || ^7.4 || ^8.1
- symfony/service-contracts: ^2 || ^3
- symfony/validator: ^5.4 || ^6.4 || ^7.4 || ^8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: 3.95.30
- phpstan/extension-installer: 1.4.3
- phpstan/phpstan: 2.3.5
- phpstan/phpstan-symfony: 2.1.1
- rector/rector: 2.8.4
- symfony/messenger: ^5.4 || ^6.4 || ^7.4 || ^8.1
- symfony/twig-bundle: ^5.4 || ^6.4 || ^7.4 || ^8.1
- twig/twig: ^3.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This bundle can be used to configure scripts that should be run during your deployment.
Deployment scripts
Generate new script
Run bin/console drenso:deployer:generate.
Deployment setup
Just add the following commands to your deployment script, at the required positions:
- Pre-deployment scripts:
bin/console drenso:deployer:pre - Post-deployment scripts:
bin/console drenso:deployer:post - Back-online-deployment scripts:
bin/console drenso:deployer:back-online
Or use our the default deployment script.
Command types
This bundle distinguishes between two main command types: always and once. Both can be configured for either the pre, post or back-online deployment hook.
Skipping a step
You can use the skipIf method in the script to conditionally skip a script. It will not be marked as executed, so it can still be executed if the condition result changed in the future.
Deployment pages
This bundle offers a method of generating a simple "We are updating" page.
Deployment scripting
This bundle offers a standard deployment script which is tailored for use in combination with GitLab CI/CD.