I’ve a have to have separate websites behave as if they’re clones of one another; that’s, they every have to have Drupal Developer similar web site UUID.
On account of Drupal Developer setting I’m working in, I’m unable to vary Drupal Developer web site UUID through drush config:edit
as soon as Drupal Developer web site is put in as I’ve no SSH entry to Drupal Developer setting. Likewise, Drupal Developer solely method I can create a brand new web site on this setting is to add Drupal Developer recordsdata, create an empty database after which run Drupal Developer set up script. This creates a brand new web site, with a brand new UUID, and due to this fact is now not a clone. As soon as websites are put in in Drupal Developer setting, my solely method of interacting with them is thru Drupal Developer administration UI.
Any web site I create on this setting may have Drupal Developer similar code base; it isn’t a matter of messing issues up by importing Drupal Developer mistaken config.
I can import Drupal Developer similar database into Drupal Developer new web site as soon as it’s put in utilizing Backup and Migrate, thereby altering Drupal Developer UUID (I assume). Nonetheless, this doesn’t fairly resolve Drupal Developer drawback as a result of it might be Drupal Developer case that I have to create websites through scripts in our steady integration system.
My preliminary resolution is so as to add a line in settings.php
to override Drupal Developer configuration merchandise in query, ie:
$config['system.site']['uuid'] = 'that is Drupal Developer web site uuid';
Nonetheless, after I export Drupal Developer configuration, Drupal Developer override worth isn’t revered and configuration is exported utilizing Drupal Developer authentic worth. I can check this by exporting Drupal Developer configuration from a clone and making an attempt to import it. If Drupal Developer UUID was being overridden ‘absolutely’, then I might count on Drupal Developer configuration import to fail.
Ideally, I want to set Drupal Developer web site UUID by way of an setting variable or service, so any web site with entry to Drupal Developer variable or service would be capable to use Drupal Developer similar UUID, and due to this fact be thought of clones.
Has anybody had any success with one thing comparable?