Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Update config split documentation #1240

Merged
merged 4 commits into from
Mar 22, 2017
Merged

Update config split documentation #1240

merged 4 commits into from
Mar 22, 2017

Conversation

danepowell
Copy link
Contributor

Starting to add documentation specifically targeted at TAs and developers.

BLT recommends using the Config Split module to manage configuration on most projects. For a description of how to use Config Split, see this excellent [blog post by Jeff Geerling](https://www.jeffgeerling.com/blog/2017/adding-configuration-split-drupal-site-using-blt-and-acquia-cloud).
### Overview

BLT recommends using the Config Split module to manage configuration on most projects. For an overview of how to use Config Split, see this excellent [blog post by Jeff Geerling](https://www.jeffgeerling.com/blog/2017/adding-configuration-split-drupal-site-using-blt-and-acquia-cloud).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For backwards compatibility, BLT currently defaults to using features. We could instead default to config split and introduce an update hook to set the cm.strategy to "features" for projects created before 8.7.*. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I definitely think we should default to config_split. An update hook (or just a line in the release notes) for existing features-based projects sounds good to me.


This section will guide you through initially setting up a Config Split workflow on your BLT based project.

1. Ensure that you are using Drush version 8.1.10 or higher.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already required by BLT in 8.7.*.

This section will guide you through initially setting up a Config Split workflow on your BLT based project.

1. Ensure that you are using Drush version 8.1.10 or higher.
2. Add Config Split version 8.x-1.0-beta4 or higher to your codebase: `composer require drupal/config_split`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already included in composer.required.json.


1. Ensure that you are using Drush version 8.1.10 or higher.
2. Add Config Split version 8.x-1.0-beta4 or higher to your codebase: `composer require drupal/config_split`
3. TODO: finish this section once the related functionality is stabilized in BLT core.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to indicate that cm.strategy must be set to config-split in project.yml. We may make this the default.

4. Review the updated configuration in `config/default` using `git diff`. If you are satisfied with the changes, commit them and open a pull request.

Note that when you run `drush cex`, if the project has been configured correctly, some configuration that's specific to the development environment should automatically be excluded. Similarly, some configuration that's intended to be "unlocked" in production might also be excluded (such as webforms). If you need to customize this behavior, you can modify the blacklists or greylists by following the steps in the section above.

## Features-based workflow

Features allows you to bundle related configuration files (such as a content type and its fields) into individual feature modules. Drupal treats features just like normal modules, but Features and its dependencies add some special sauce that allow features to not only provide default configuration (like normal modules), but to also update (track and import) changes to this configuration.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to indicate that cm.strategy must be set to features in project.yml.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@grasmash grasmash merged commit 1b7787e into 8.x Mar 22, 2017
@grasmash grasmash deleted the danepowell-patch-7 branch August 4, 2017 17:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants