mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
commit
b5d6e94318
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user