Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .gitignore/.deployignore support for partial deploys? #17

Closed
acerus opened this issue Nov 17, 2021 · 2 comments
Closed

Add .gitignore/.deployignore support for partial deploys? #17

acerus opened this issue Nov 17, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@acerus
Copy link

acerus commented Nov 17, 2021

Sometimes it's really necessary to exclude some folders from deploy. Example: local copy is used for development and there are all kinds of developer-only stuff there, like node_modules. Would be great to have an option where I can specify what folders/files to exclude from deploy at all times.

@kovshenin kovshenin added the enhancement New feature or request label Nov 17, 2021
@kovshenin
Copy link
Owner

FWIW partial (or sparse) deploys are already implemented in Sail, you just need to give it a path, like this:

sail deploy wp-content/plugins # this will deploy the plugins directory only

But if node_modules is inside your plugin directory, then that doesn't really help. It's also annoying to have to type it out all the time, its purpose is to use it in rare edge cases. So yes, .deployignore (and .gitignore) support is a great idea, will look into doing a first pass in the next release.

kovshenin added a commit that referenced this issue Nov 18, 2021
Parse an optional .deployignore file in the project root directory
and add appropriate rsync filters to skip filenames and patterns
during deploy.

See #17
@kovshenin
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants