mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 17:22:41 +01:00
Merge pull request #534 from datenbetrieb/hotfix/shared_files
Fix #533 shared_files directory handling
This commit is contained in:
commit
dcccb73f1e
@ -209,11 +209,14 @@ task('deploy:shared', function () {
|
||||
}
|
||||
|
||||
foreach (get('shared_files') as $file) {
|
||||
$dirname = dirname($file);
|
||||
// Remove from source
|
||||
run("if [ -f $(echo {{release_path}}/$file) ]; then rm -rf {{release_path}}/$file; fi");
|
||||
// Ensure dir is available in release
|
||||
run("if [ ! -d $(echo {{release_path}}/$dirname) ]; then mkdir -p {{release_path}}/$dirname;fi");
|
||||
|
||||
// Create dir of shared file
|
||||
run("mkdir -p $sharedPath/" . dirname($file));
|
||||
run("mkdir -p $sharedPath/" . $dirname);
|
||||
|
||||
// Touch shared
|
||||
run("touch $sharedPath/$file");
|
||||
|
Loading…
x
Reference in New Issue
Block a user