Skip to content

Commit 0469895

Browse files
authored
📚 Sync content of local strategy
1 parent cbc5aa9 commit 0469895

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

docs/strategy-local.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,7 @@ task('local:build', function() {
2323
invoke('deploy:prepare');
2424
invoke('deploy:release');
2525
invoke('deploy:update_code');
26-
27-
foreach (get('shared_dirs') as $dir) {
28-
if (test("[ -d {{previous_release}}/$dir ]")) {
29-
run("mkdir -p {{release_path}}/$dir");
30-
run("rsync -r --ignore-existing {{previous_release}}/$dir {{release_path}}/" . dirname(parse($dir)));
31-
}
32-
}
33-
foreach (get('shared_files') as $file) {
34-
if (test("[ -f {{previous_release}}/$file ]")) {
35-
run("mkdir -p {{release_path}}/" . dirname(parse($file)));
36-
run("rsync --ignore-existing {{previous_release}}/$file {{release_path}}/$file");
37-
}
38-
}
39-
26+
copyShared('{{previous_release}}', '{{release_path}}');
4027
invoke('deploy:shared');
4128
invoke('deploy:vendors');
4229
invoke('hook:build'); // Any tasks hooked to `build` will be called locally

0 commit comments

Comments
 (0)