Overriding system.web site.uuid with an setting variable

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?

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Overriding system.web site.uuid with an setting variable

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.