docs/recipe/deploy/update_code.md
require 'recipe/deploy/update_code.php';
Determines which branch to deploy. Can be overridden with CLI option --branch.
If not specified, will get current git HEAD branch as default branch to deploy.
'HEAD'
The deploy target: a branch, a tag or a revision. :::info Autogenerated The value of this configuration is autogenerated on access. :::
Sets deploy:update_code strategy. Can be one of:
.git dir in your release_path, clones from remote repository)'archive'
Sets environment variable GIT_SSH_COMMAND for git clone command.
If StrictHostKeyChecking flag is set to accept-new then ssh will
automatically add new host keys to the user known hosts files, but
will not permit connections to hosts with changed host keys.
'ssh -o StrictHostKeyChecking=accept-new'
Specifies a sub directory within the repository to deploy.
Works only when update_code_strategy is set to archive (default) or local_archive.
Example:
src if you want to deploy the folder that lives at /src.src/api if you want to deploy the folder that lives at /src/api.Note: do not use a leading /!
false
Updates code.
Update code at release_path on host.