- removes old log file
- logs that deploy started
- generates target directory name, stores it in
DeployEventinstance and creates this directory - directory name is a timestamp in YmdHis format, this is also stored in event instance as
timestamp
- stores source dir (local repository path) to event instance
- checks that git
binary_pathis correct - checks that local repository is in place
- nothing
- checks that
binary_pathis correct - checks that all
working_dirsfrom config exist
- nothing
- nothing
- nothing
- checks out
branchspecified in config - exports code from repository to target directory
- creates a
REVISIONfile with current commit hash
- links all
shared_foldersandshared_files
- run Composer in all
working_dirsspecified in config - if
update_vendorsis set to true it runscomposer updateotherwise justcomposer install
- checks that
binary_pathis correct - for each phinx config from
config_filesit does following - runs phinx migrate and stores output to
PHINX_MIGRATEfile - runs phinx status and stores output to
PHINX_STATUSfile - extract current migration id from status output and stores it to
PHINX_CURRENTfile
- for all resources specified in
rwxconfig it sets 0777 permissions with chmod
- nothing
- nothing
- nothing
- nothing
- nothing
- removes
currentsymlink - link
currentto target directory which is set in DeployEvent instance - copies log to
logs/timestamp.deploy.log