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

Push to sub-directory? #20

Open
jblanton opened this issue Jan 4, 2013 · 6 comments
Open

Push to sub-directory? #20

jblanton opened this issue Jan 4, 2013 · 6 comments

Comments

@jblanton
Copy link

jblanton commented Jan 4, 2013

I'm going to be using Jekyll to host two blogs on the same domain--one at "/" and one at "/subdir". Is there a way to tell Jekyll-s3 to push to the subdir? (I realize that I may be able to get around this by telling Jekyll to write the files for the second blog into /subdir, but I haven't really looked into that yet.)

@laurilehmijoki
Copy link
Owner

At the moment, no.

Out of curiosity, why would you want to host two different Jekyll blogs on the same S3 bucket?

@jblanton
Copy link
Author

jblanton commented Jan 5, 2013

Ah, OK, thanks for getting back to me.

To answer your question, I'll be running a blog at domain.com and a photoblog at domain.com/photos, each styled, etc., differently.

@adelevie
Copy link
Collaborator

adelevie commented Apr 9, 2013

You'd want something like this?

s3_id: YOUR_AWS_S3_ACCESS_KEY_ID
s3_secret: YOUR_AWS_S3_SECRET_ACCESS_KEY
s3_bucket: your.blog.bucket.com
s3_bucket_directory: /photos

There could be something under the hood where "s3_bucket_subdirectory" simply defaults to "/" if nil?.

@laurilehmijoki
Copy link
Owner

Not a bad idea.

@adelevie
Copy link
Collaborator

So, @jblanton, maybe you could propose some code for how this should work? Either a high level description, a PR, or just some failing specs would be great.

I think as config options increase, we should also focus on solving #37. For example, right now we have different classes responsible for their own default values. Perhaps, we should have a Jekyll::S3::Configuration class which handles defaults.

@adelevie
Copy link
Collaborator

Also, I'll +1 this. I could use this feature right about now.

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

No branches or pull requests

3 participants