jekyll-s3 icon indicating copy to clipboard operation
jekyll-s3 copied to clipboard

Add config option to ignore certain files

Open BewhiskeredBard opened this issue 11 years ago • 6 comments

I have another system that frequently pushes JSON data files to the same S3 bucket that's hosting my jekyll website. My jekyll website makes AJAX calls to retrieve this data.

I have local sample versions of these JSON data files on my machine (for testing), but every time I run jekyll-s3, my local files get uploaded and replace the production ones. If I could somehow define a set of ignored files in _jekyll_s3.yml, it would be a huge help.

BewhiskeredBard avatar Mar 19 '13 17:03 BewhiskeredBard

I would love to have jekyll-s3 ignore the dreaded .DS_Store files.

pathawks avatar Apr 22 '13 23:04 pathawks

It's already possible to define a regex for ignored files: https://github.com/laurilehmijoki/jekyll-s3#ignoring-files-you-want-to-keep-on-aws.

Does that feature solve your problem?

laurilehmijoki avatar Apr 23 '13 06:04 laurilehmijoki

It's already possible to define a regex for ignored files

Is there any way to define the opposite: Files I want to keep on my local machine, but not on S3?

pathawks avatar Apr 26 '13 17:04 pathawks

Currently there is no such way.

A regex ignore_on_local in _jekyll_s3.yml could do the job. Only the implementation is missing!

laurilehmijoki avatar Apr 27 '13 13:04 laurilehmijoki

Is this the work of Jekyll itself and not Jekyll-s3. Exclude whatever you want to in your Jekyll config. Everything there will be local but won't be in your "_site" which is what Jekyll-S3 delivers to your S3.

brajeshwar avatar Jun 22 '13 14:06 brajeshwar

Good point @brajeshwar. In deed with the exclude setting of Jekyll you can control the files that end up in the _site directory.

laurilehmijoki avatar Jun 25 '13 06:06 laurilehmijoki