Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Where is the content folder? #40

Open
EasonPai opened this issue Mar 30, 2019 · 4 comments
Open

Where is the content folder? #40

EasonPai opened this issue Mar 30, 2019 · 4 comments

Comments

@EasonPai
Copy link

After I setup everything with lazybones, I got only modules of

  • core
  • ui.apps

And under module ui.apps, there are only folders of

  • /apps
  • /conf

This is normal?
If not, what should I do if I want to develop the /content as well?

@joerghoh
Copy link

Why do you want to include /content in your deployment? That's the location where authors change content and which should never be overwritten by any deployment.

@EasonPai
Copy link
Author

EasonPai commented Mar 31, 2019

@joerghoh Understood. It makes sense to me that no /content is needed to develop outside of CRX.

Only I saw the structure of official archetypehas a /content module it. I am confused, what consideration leads to the difference?

@joerghoh
Copy link

the ui.content project should just come with the /conf folder (and even that is questionable from my point of view), but never with /content.
I guess that it's time to review that structure a bit :-)

@ireasor
Copy link

ireasor commented Apr 1, 2019

It is a fairly common deployment pattern on projects to have a ui.content project that contains bootstrap content such as the initial site structure. This project is usually deployed separately from the other modules so that you can deploy it when setting up a new environment while leaving it out on subsequent builds.

@EasonPai You could always update the filter.xml to include /content and then include those paths. Just note that if you deploy this after content has been authored in an environment that you will erase any content that is there.

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

No branches or pull requests

3 participants