CMI in Drupal8
Post on 10-May-2015
351 Views
Preview:
DESCRIPTION
Transcript
CMI (Configuration Management Initiative) in Drupal 8
Nguyen Tien Si
Agenda
• Drupal 7• CMI in Drupal 8• Demo• Question?
Drupal 7
• Have many way to save configuration– Variable table– Own module table
• Deploy from Dev to Pro, includes:– Update_N() hook– Features module– Ctools exportable– …
CMI in Drupal 8
Source: drupalwatchdog.com
CMI in Drupal 8
Exporting the configuration to the file system as YAML fileEx: core/modules/image/config/image.style.large.yml
CMI in Drupal 8
Drupal installation two directories will be created:• active: This stores your currently live configuration.• staging: This stores configuration that is ready to be imported.Ex: sites/default/files/config_0uja8Kt-jH9Pcvu9AGznoQp6FmFs1hVB6APfJMKLcMg
active:
CMI in Drupal 8
API
CMI in Drupal 8
Import/Export to deploy
CMI in Drupal 8
Import/Export to deploy
CMI in Drupal 8
Import/Export to deploy
CMI in Drupal 8
Import/Export to deploy
CMI in Drupal 8
Import/Export do deploy
CMI in Drupal 8
Import/Export to deploy
Demo
Source:https://github.com/mrsinguyen/cmidemo
Download:https://github.com/mrsinguyen/cmidemo/archive/8.x-1.x.zip
References
• http://drupal8cmi.org• https://drupal.org/node/1667894
Question?
Any question?
top related