#01 - Configuration Management in D9
Closed this issue · 0 comments
Objective
At the end of this course, you will be able to
export configuration from a local or Dev environment
transfer the same by copying the files or through version control to another environment
Thereby, moving version controlled configuration across various environments.
Exercise
Setup 2 local D9 instances. Call one site Dev and the other Prod (Clone the dev site to prod, rather than setting them up individually. Research issues with mismatching UUIDs)
Create a simple content type (say Book) with 2 fields (Title, ISBN) and create 2 nodes of content on Dev
Build a simple view (of page type, accessible at the url /list) listing the book nodes
Export the site configuration using Drush (which includes the content type and the view) using drush cex command or Drupal Console using drupal ce
Copy the exported files to same directory on Prod site simulating a code pull from upstream repo.
Import the configuration using drush cim on prod site or drupal ci. Verify the content type and view are available on Prod.