21
Developing with Configuration Management Ryan Szrama, DrupalCamp Asheville 2014

Developing with Configuration Management on Drupal 7

Embed Size (px)

DESCRIPTION

Learn some of the benefits of managing your Drupal configuration in code, including a walkthrough of the user interface and process for using the Configuration Management module on Drupal 7.

Citation preview

Page 1: Developing with Configuration Management on Drupal 7

Developing with Configuration ManagementRyan Szrama, DrupalCamp Asheville 2014

Page 2: Developing with Configuration Management on Drupal 7

Why do configuration management?

Configuration management improves:

1. The stability of a production website.

2. The reliability of feature deployment to a production website.

3. The speed of feature deployment to a production website.

Page 3: Developing with Configuration Management on Drupal 7

Manage configuration in code.

● Baseline for dependable feature development and deployment in Drupal.

● Commit it to your repository so it can be moved between environments; typically more useful than sharing features between sites.

● Do it manually, use Features, or use Configuration Management.

Page 4: Developing with Configuration Management on Drupal 7

What’s Configuration Management?

The Configuration Management module treats your entire site as a Feature.

● Backport of Drupal 8 “CMI” work.● Lets you track configurations, export them

from the active store (database) to the data store (file system), and synchronize the active store with the data store.

Page 5: Developing with Configuration Management on Drupal 7
Page 6: Developing with Configuration Management on Drupal 7
Page 7: Developing with Configuration Management on Drupal 7
Page 8: Developing with Configuration Management on Drupal 7
Page 9: Developing with Configuration Management on Drupal 7
Page 10: Developing with Configuration Management on Drupal 7
Page 11: Developing with Configuration Management on Drupal 7
Page 12: Developing with Configuration Management on Drupal 7
Page 13: Developing with Configuration Management on Drupal 7

What isn’t it good for?

1. Overriding default configurations.2. Managing menu items.3. Managing environment specific configuration

or sensitive configuration (e.g. API keys).a. Fortunately, you can exclude any configuration you

want through the settings form.

Page 14: Developing with Configuration Management on Drupal 7
Page 15: Developing with Configuration Management on Drupal 7

How does it work on Platform.sh?

Page 16: Developing with Configuration Management on Drupal 7

How does it work on Platform.sh?

Page 17: Developing with Configuration Management on Drupal 7

How does it work on Platform.sh?

Page 18: Developing with Configuration Management on Drupal 7

How does it work on Platform.sh?

Page 19: Developing with Configuration Management on Drupal 7

How does it work on Platform.sh?

Page 20: Developing with Configuration Management on Drupal 7

How it works on Platform.sh:

1. Track a collection of configurations.2. Write them to the data store using a writable

files directory.3. Export them and copy the tracked.inc and

configuration .inc files to /config in Git.4. Commit and push to rebuild the environment.5. Merge commits upstream6. Synchronize from sites/default/config.

Page 21: Developing with Configuration Management on Drupal 7

What’s next?

Check out the results of the Configuration Management Initiative in Drupal 8:

https://austin2014.drupal.org/session/introducing-drupal-8-configuration-system