drenso / symfony-deployer-bundle
Deploy scripting bundle for Symfony
Installs: 2 682
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:HTML
Type:symfony-bundle
pkg:composer/drenso/symfony-deployer-bundle
Requires
- php: >=8.1
- ext-hash: *
- doctrine/doctrine-bundle: ^2.11 || ^3
- doctrine/orm: ^3.0
- symfony/asset: ^5.4 || ^6.0 || ^7.0
- symfony/config: ^5.4 || ^6.0 || ^7.0
- symfony/console: ^5.4 || ^6.0 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.0 || ^7.0
- symfony/http-kernel: ^5.4 || ^6.0 || ^7.0
- symfony/service-contracts: ^2 || ^3
- symfony/validator: ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: 3.88.2
- phpstan/extension-installer: 1.4.3
- phpstan/phpstan: 2.1.31
- phpstan/phpstan-symfony: 2.0.8
- rector/rector: 2.2.3
- symfony/messenger: ^5.4 || ^6.0 || ^7.0
- symfony/twig-bundle: ^5.4 || ^6.0 || ^7.0
- twig/twig: ^3.4
README
This bundle can be used to configure scripts that should be run during your deployment.
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
Command types
This bundle distinguishes between two main command types: always and once. Both can be configured for either the pre or post 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.