Phing extension for rsync.
Download composer from https://github.com/composer/composer. and put it in your project root directory.
Clone project and copy Deploy.php
, composer.json
, composer.lock
and build_deploy.xml
in your project root directory.
Run composer php composer.phar install
for dependencies (phing and phpunit).
Open build_deploy.xml
and following steps:
- set source directory
- set destination directory (or remote server directory)
- set dry_run parameter to true for --dry-run (simulation)
- set option rsync command
Run /path/to/your/project/vendor/phing/phing/bin/phing -f build_deploy.xml deploy_temp
Run /path/to/your/project/vendor/phing/phing/bin/phing -f build_deploy.xml deploy_staging