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

Ignore Sub-folders Feature #33

Closed
juliano-digitaldesk opened this issue Jul 12, 2018 · 7 comments · Fixed by #111
Closed

Ignore Sub-folders Feature #33

juliano-digitaldesk opened this issue Jul 12, 2018 · 7 comments · Fixed by #111

Comments

@juliano-digitaldesk
Copy link

It is possible to ignore folders (local and remote) for a deploy?

What I would like to achieve is to sync everything from a folder, except files in some sub-folder, like "pdf-docs", preserving any remote (in S3) files in this folder.

@dmulter
Copy link

dmulter commented Oct 28, 2018

My use case:

I have separate repos with distinct s3deploy steps that control specific subdirectories of my main static website. For example, /blog, /docs, etc.

I have another repo that handles the main static website that also has an s3deploy step. I would like to configure this deploy to ignore/skip the subdirectories above, as it would wipe them from S3.

@bep
Copy link
Owner

bep commented Oct 28, 2018

@dmulter I suspect you can do what you want with the -path flag

I have one bucket which I use as a "dumping ground" for some test sites, and one example would look like this:

s3deploy -source=public/ -region=eu-west-1 -bucket=bep.is -distribution-id=E8OKNT7W9ZYZ2 -path temp/hugotest

In that bucket I have several other directories that I deploy separately.

@dmulter
Copy link

dmulter commented Oct 28, 2018

I use --path for the subdirectories deploys and they work great. The problem is that the root deploy doesn't use --path (since the files need to go to the root), and the lack of the other subdirectories
then causes those whole directories to be deleted.

@julianoappelklein
Copy link

My use case:
The website is deployed at root, but there are some folders I don't want to touch, like folders that some coworkers use to manually drop large files that are bad to include in the version control system.

@mpucholblasco
Copy link

@bep, I have free time. I can arrange this if you agree.

@bep
Copy link
Owner

bep commented Nov 21, 2018

@mpucholblasco that would be great, but we should probably conclude on #37 first -- as it would probably save some "merge work". I'm out and about traveling this week so it will take "some days" before I get to that.

@mpucholblasco
Copy link

Good idea @bep . Thanks!

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

Successfully merging a pull request may close this issue.

5 participants