How is this used with Config Split?

Created on 21 October 2021, over 3 years ago
Updated 31 May 2024, 8 months ago

Problem/Motivation

I have this in place in a couple large sites but always get confused on setup for some reason. I don't want to set indicator colours in settings.php; as i use the Config Split module.

Somehow i keep losing my enviro indicator setting in my local split folder; but i think i have sorted that out now.. but since i recently pulled db from Dev enironment, the indicator thinks I am on Dev. So when i do a cex, i do now get the enivornment yml file in my local split folder - but it is the DEV settings. When i look at the Indicator settings for all the environments, everything is defined correctly. The basic part i seem to be missing is how to set my enivornment, on my local, to be LOCAL - so that when i do a cex, the correct enviro yml file is created in my config/local?

For some reason i thought the toolbar switcher would do this.. and when i click the blue LOCAL tab, the page redirects to my LOCAL site (which it was already on); but it doesnt switch the environment settings to LOCAL.

What am i missing here?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

4.0

Component

User interface

Created by

πŸ‡¨πŸ‡¦Canada liquidcms

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States krisahil

    I recently set up this module with config_split (note that this is a Drupal 10.1 site on the 1.x series of config_split, not 2.0 yet). It sounds like you have everything configured correctly. One tricky thing to remember: You might need to import config twice (e.g., drush config:import), once so that Drupal reads the new config-split settings, and the second to actually import that environment's split.

  • πŸ‡ΊπŸ‡ΈUnited States devkinetic

    I second having to import the config twice, it's always drush cr; drush cim -y; drush cim -y.

Production build 0.71.5 2024