-
Notifications
You must be signed in to change notification settings - Fork 0
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 domain property to project config and publish all content to S3 folder for that domain #85
Comments
Sources bucket structure will be something like - root folder contains all the project yaml files ( The destination bucket will have a folder for each domain, containing the published website content. So next step is to build the project creation service and front end. |
When loading and saving content, how do I specify the project? This will be needed to identify what source folder to save to. Options are:
|
A project definition requires a domain (like www.cantilevers.org) which gets treated as the 'domainKey', the name of the root folder in the S3 sources and destination buckets. It is set on project creation, but it's just part of the project yaml and can easily be modified. Which would break things. Ignoring that part for now, it's still a bit tricky to know what to name the '.yaml' file in the first place. It is currently set to a sluggified version of the original project name. I kinda what to make that more of a UUID. |
I am going to experiment with headers and cookies. New territory for me. I don't really want to complicate my routes by passing the project key. |
Project needs a proper testing but I think I've got all the core routes working with new cantilever-project-domain header. |
Testing to be done:
|
Bugs found:
Major problem:
|
I've done enough, for now. |
In Cantilever.yaml add a required property
domain
.When writing all content to S3 buckets (both the generated folder and the destination bucket) prepend all keys with that property.
The text was updated successfully, but these errors were encountered: