Skip to content

WIP: Add shared_dirs_populate option to populate shared dirs from release#4227

Open
adpeyre wants to merge 1 commit into
deployphp:masterfrom
adpeyre:shared-populate
Open

WIP: Add shared_dirs_populate option to populate shared dirs from release#4227
adpeyre wants to merge 1 commit into
deployphp:masterfrom
adpeyre:shared-populate

Conversation

@adpeyre
Copy link
Copy Markdown
Contributor

@adpeyre adpeyre commented Jun 2, 2026

Adds a new shared_dirs_populate option (default: false) to the deploy:shared task.

When enabled, each deploy copies any new files and subdirectories present in the release into the already-existing shared directory, without overwriting content already there. This is useful when new
subdirectories are added to the repository over time and need to be propagated to the shared directory on the server.

The copy uses --no-clobber (existing files are never overwritten) and --no-dereference (directory symlinks in the source are preserved as symlinks).

  • Bug fix #…?
  • New feature?
  • BC breaks?
  • Tests added?
  • Docs added?

@adpeyre adpeyre changed the title Add shared_dirs_populate option to populate shared dirs from release WIP: Add shared_dirs_populate option to populate shared dirs from release Jun 2, 2026
@antonmedv
Copy link
Copy Markdown
Member

Would be cool to add test for this feature.

@antonmedv
Copy link
Copy Markdown
Member

And manybe just make it on by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants