Apply recipes in multisite architecture

Created on 25 January 2024, 5 months ago
Updated 11 June 2024, 17 days ago

Problem/Motivation

The command to apply recipes is only requiring the path to the recipe and it is not possible to apply a recipe pointing to a different site than default.

Steps to reproduce

Try to specify a site different than default when running php core/scripts/drupal recipe [path/to/recipe].

Proposed resolution

Add an option similar than Drush, where a different site can be pointed.

✨ Feature request
Status

Needs work

Version

11.0

Component

Code

Created by

πŸ‡¨πŸ‡΄Colombia jidrone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @jidrone
  • πŸ‡¨πŸ‡΄Colombia jidrone
  • Status changed to Needs review 5 months ago
  • πŸ‡¨πŸ‡΄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.

  • Pipeline finished with Failed
    5 months ago
    #82443
  • Pipeline finished with Failed
    5 months ago
    #82450
  • Pipeline finished with Failed
    5 months ago
    #82466
  • Pipeline finished with Failed
    5 months ago
    #82479
  • Pipeline finished with Failed
    5 months ago
    #82482
  • Pipeline finished with Running
    5 months ago
    #82497
  • Pipeline finished with Success
    5 months ago
    Total: 147s
    #88307
  • πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts

    Adding to the Phase 2 Roadmap. Thanks for your contribution!

  • πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts
  • Status changed to Needs work 17 days ago
  • πŸ‡ΊπŸ‡Έ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.

  • Pipeline finished with Canceled
    15 days ago
    Total: 26s
    #198461
  • Pipeline finished with Failed
    15 days ago
    Total: 189s
    #198463
  • Pipeline finished with Canceled
    15 days ago
    Total: 2s
    #198469
  • Pipeline finished with Failed
    15 days ago
    Total: 127s
    #198470
Production build 0.69.0 2024