Download the PHP package friemt/deployer-tasks without Composer
On this page you can find all versions of the php package friemt/deployer-tasks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download friemt/deployer-tasks
More information about friemt/deployer-tasks
Files in friemt/deployer-tasks
Package deployer-tasks
Short Description Additional and enhanced tasks not available for Deployer out of the box.
License MIT
Informations about the package deployer-tasks
Additional tasks for Deployer
Additional and enhanced tasks not available for Deployer out of the box.
Installation
Usage
Either include the recipe or task and the respective configuration to your deployer file.
crontab
Syncs configured cronjobs to the target systems.
variables
variable | description | default |
---|---|---|
bin/crontab | path to the crontab binary on the target system | which crontab |
crontab_backup | path where the backup should be placed | {{deploy_path}}/.dep/crontab.bak |
crontab_marker | a string used to identify the deployment across target systems and stages | {{application}} {{crontab_stage}} |
crontab_stage | a string to differentiate multiple deployments on the same target system | host.labels.stage |
crontab_user | the user to use with crontabs -u option |
host.remote_user |
crontab_target_lookup | a list of labels to determine the target systems | host.alias , host.hostname , host.labels.stage |
tasks
task | description |
---|---|
crontab:check | checks the target system against the configuration and displays any differences |
crontab:sync | syncs the configuration to the target system, adding, updating and deleting entries |
runonce
Runs a defined command on the target system once and only once.
variables
variable | description | default |
---|---|---|
runonce_history | path where the history should be placed | {{deploy_path}}/.dep/runonce_log |
runonce_target_lookup | a list of labels to determine the target systems | host.alias , host.hostname , host.labels.stage |
tasks
task | description |
---|---|
runonce:check | checks the target system against the configuration and displays any differences |
runonce:run | checks which commands have already run and runs any differences, also retries commands marked for retry |
template
Copy files to the target system after replacing deployer placeholders.
variables
variable | description | default |
---|---|---|
template_history | path where the history should be placed | {{deploy_path}}/.dep/template_log |
template_target_lookup | a list of labels to determine the target systems | host.alias , host.hostname , host.labels.stage |
tasks
task | description |
---|---|
template:check | checks the target system against the configuration and displays any differences |
template:sync | syncs the configuration to the target system, adding and updating files |
cleanup
Remove obsolete files and folders from older releases.
variables
variable | description | default |
---|---|---|
cleanup_paths | A list of paths, relative to the release dir, which should be removed. | 'var/cache' |
tasks
task | description |
---|---|
cleanup:paths | Checks every release except current for the configured paths and removes them if they exist. |
symlink
Creates symlinks anywhere on the host from a given list.
variables
variable | description | default |
---|---|---|
symlink_config | list of destination => source pairs. These will be created on deployment | [] |
tasks
task | description |
---|---|
symlink:create | creates the given list of symlinks on deployment |
supervisor
Stop and start task for supervisor to avoid runtime errors during deployment.
variables
variable | description | default |
---|---|---|
bin/supervisor | path to the supervisorctl binary on the target system | which supervisorctl |
supervisor_groups | list of groups to be stopped, updated and started | [] |
supervisor_use_sudo | whether the commands are rund with sudo | false |
tasks
task | description |
---|---|
supervisor:stop | stops the given list of supervisor task groups |
supervisor:start | updates and starts the given list of supervisor task groups |
All versions of deployer-tasks with dependencies
ext-ctype Version *
ext-json Version *
ext-mbstring Version *
deployer/deployer Version ^7.0
symfony/polyfill-php80 Version ^1.26