Merge pull request #1072 from gulios/master

Copy nested directories
This commit is contained in:
Anton Medvedev 2017-03-10 12:30:12 +07:00 committed by GitHub
commit b5d6e94318

View File

@ -18,7 +18,11 @@ task('deploy:copy_dirs', function () {
// Copy if dir exists.
if (test("[ -d $path ]")) {
run("cp -rpf $path {{release_path}}");
// Create destination dir(needed for nested dirs)
run("mkdir -p {{release_path}}/$dir");
run("rsync -av $path/ {{release_path}}/$dir");
}
}
}