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

Move all common settings files to sites/all/settings #147

Closed
greylabel opened this issue Jun 13, 2016 · 4 comments
Closed

Move all common settings files to sites/all/settings #147

greylabel opened this issue Jun 13, 2016 · 4 comments

Comments

@greylabel
Copy link
Contributor

I think it makes sense to move all common settings files to sites/all/settings for the purpose of making BTL more multisite compatible. The convention of common settings residing in sites/all/settings follows more closely the convention how Drupal handles shared themes, modules, libraries, etc. Obviously includes from sites/all/settings will function correctly, but feel we should treat the default site as any other site in a multisite and not have it contain platform level config, but only its config. I find it to be much more sane when the number of sites scales and it keeps the default site isolated -- sharing config between site folders is more confusing to me personally.

@danepowell
Copy link
Contributor

danepowell commented Jun 14, 2016

Re-posting from #141...

Your argument makes complete sense and I was initially inclined to agree. However, at least within PS, it's rare that we launch new multisite projects on ACE any more. Multisite almost always goes on ACSF, which doesn't use either all or default anyway. So to me it actually makes sense to keep using default, since that aligns with the most common use case. It's really a pain on a single-site installation when some config exists in sites/all and other config in sites/default.

I think you could make a good argument either way. Regardless of the merits of all vs default though: we've already flipped back and forth between them at least twice, and the transition sucks for anyone already using Bolt. I don't particularly want to do it again unless there's a pretty compelling reason.

@danepowell
Copy link
Contributor

Not sure if it's worth the added complexity, but we could have a "multisite" switch in project.yml. If a project is multisite, settings go into sites/all. Otherwise they go into sites/default.

@greylabel
Copy link
Contributor Author

The compelling reason, IMHO, is it is better architecture to treat default the same as you would any other site in a multisite and not a special, global snowflake. For single-site installations, I don't really know how much heartburn this will cause if BLT handles the provisioning and is well documented -- developers should already be comfortable with the ideas of using sites/all with single-sites for modules and themes, not much difference here in concept.

That said, I really like the idea of "multisite" switch in project.yml or better multisite considerations throughout the project, including build.yml, box/config.yml, CI integration, and all other config files.

@grasmash
Copy link
Contributor

grasmash commented Sep 9, 2016

This is now a moot point as of 8.4.0, given that default settings are now in vendor/acquia/blt/settings. Only local settings are insites/default and these are site specific.

@grasmash grasmash closed this as completed Sep 9, 2016
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