- Issue created by @jidrone
- Merge request !67Issue #3417012: Added option to apply recipes in multisite architecture β (Open) created by jidrone
- Status changed to Needs review
11 months ago 5:45pm 25 January 2024 - π¨π΄Colombia jidrone
I added the --site-path option, which can be used to point the recipe to another site than the default.
Example:
php core/scripts/drupal recipe recipes/custom/basic_block --site-path subsite1
Assuming the path of the site is sites/subsite1. - πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
Adding to the Phase 2 Roadmap. Thanks for your contribution!
- Status changed to Needs work
6 months ago 12:53pm 11 June 2024 - πΊπΈUnited States phenaproxima Massachusetts
I think this solution looks completely reasonable, but I think we could simplify the code a little bit. The --site-path option should have an internal default value of
sites/default
. - πΊπΈUnited States phenaproxima Massachusetts
I think we can move this to core.
- Status changed to Needs review
3 months ago 3:44pm 12 September 2024 - π«π·France andypost
It's more natural to use a key from
$sites
defined bysites/sites.php
instead of directory part - πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
thejimbirch β changed the visibility of the branch 3417012-apply-multisite to hidden.
- πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
Should there be a test that verifies the recipe is applied to a site in a multidev and not another?
- πΊπΈUnited States phenaproxima Massachusetts
I don't think we don't need one. The tests have always taken advantage of this (see RecipeTestTrait), via the DRUPAL_DEV_SITE_PATH environment variable. That's how we know it works.
- Status changed to Needs work
3 months ago 7:09am 13 September 2024 - π¬π§United Kingdom alexpott πͺπΊπ
I think we should do what Drush does with respect to site key vs directory. I think Drush takes a URL to work out the site.
Also I left a comment on the MR.
- First commit to issue fork.
- πΊπΈUnited States jcandan
A patch for 10.3.x sites. MR ready to be created if desired.