This bundle can be used to configure scripts that should be run during your deployment.
Run bin/console drenso:deployer:generate
.
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
This bundle distinguishes between two main command types: always
and once
. Both can be configured for either the pre
or post
deployment hook.
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.