How to stop losing local config files?

Created on 10 March 2022, about 3 years ago
Updated 22 March 2023, about 2 years ago

Problem/Motivation

We use config split everyday to manage local/dev/stage/prod environments; but for some reason i can't seem to get local config to remain.

On my local, with local environment set as active in my settings.php: $config['config_split.config_split.local']['status'] = TRUE;

I have 1 file in my local config for the Environment Indicator module settings. This file is committed to our github repo.

In the split for local i have tried setting the entire module as split and also just the setting itself. Regardless, every time i do a cex the file gets wiped from my config/local folder and i need to restore it.

I am sure there must be something simple that i am missing here.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

2.0

Component

Documentation

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.

  • 🇫🇷France ericdsd France

    Hi, i recently switched from directory storage to collection storage and i have the same issue.
    i have 3 splits dev/staging/prod
    they all have system.site splitted

    I export my config from an instance where dev split is active > config/sync/split/dev/system.site.yml is created

    i commit config/sync/split/dev/system.site.yml

    on another instance with prod split activated
    if i drush cex
    config/sync/split/prod/system.site.yml is created
    and
    config/sync/split/dev/system.site.yml is deleted

    I also use $config_exclude_module but only for other modules

    Note that doing the same with directory storage doesn't delete configs.

    Maybe i miss something.

  • 🇨🇭Switzerland bircher 🇨🇿

    Please read #3167041-7: Config split with pull
    Then please update the documentation! see 📌 Update documentation for Config Split 2.x Active

    Commenting on an old closed issue is not a good strategy.

Production build 0.71.5 2024