This video covers why it's necessary to clone your site if you want to manage configuration between environments; how to find your site's universally unique identifier (UUID); what to consider when setting up a directory structure for your project; and how to clone a Drupal site with Git.
- View Offline
(cheerful guitar and chimes)…- [William] In this lesson,…we'll cover why you need to clone your site,…we'll find out how you can retrieve…your site's Universal Unique Identifier, or UUID.…We'll then take a look at an example directory structure…that you might want to use for your project,…and then lastly, we'll clone a Drupal site with Git.…So why clone your site?…Well, your site's configuration can only be imported…or exported to a copy of your site or project.…The configuration system utilizes the system.site uuid,…which is generated when you install Drupal 8.…
So how do we take a look at our system.site uuid?…Well, we can use the drush command config get,…or cget for short.…Let's see it in action.…And you'll see that drush returns…my system.site uuid property, which is that long string…that begins 194 and ends 661.…We can also use config get…just to look at our system.site configuration,…just to quickly take a look at that structure.…And you'll see there we have uuid at the top,…and then name, which is our system.site name,…
In this series of tutorials you'll learn all about the new configuration system in Drupal. Explore key concepts in configuration management and important skills, such as moving configuration from a local development environment to production and using the configuration system in a module. Find out how to use command-line tools such as Drupal Console, Drush, and Git, as well as GUI tools as an alternative for tasks like cloning a site and importing and exporting site configuration.
Developers can use the demo module provided with the exercise files, Transcode Profile, to explore default configuration, custom configuration entities, administrative forms, and working with configuration entity data in a form. By the end of the course, you'll understand how you can manage configuration between instances of your site and leverage the Drupal configuration system in a module.