Skip to content
Menu
Open World News Open World News
  • Privacy Policy
Open World News Open World News

Author: Michael G

Specbee: Understanding Drupal Configuration Synchronisation

Posted on January 30, 2024 by Michael G
Imagine you’re adding a new feature to your Drupal site, like a Mailchimp module that integrates with your contact form. Now that you have set it up, you want to move it to staging and then production. How do you maintain consistency across environments and ensure it is configured the same way all the way across?
Don’t worry! Drupal comes to developers’ rescue with its robust Configuration Synchronization system. This fantastic feature lets you effortlessly export the setup and import the settings between different instances of a Drupal website. In this blog post, we’ll delve into the nuances of Drupal Configuration Sync, exploring the process, best practices, and strategies to master this essential aspect of Drupal development.

What is Drupal Configuration Synchronization
Drupal Configuration Synchronization is a feature in the Drupal content management system that allows you to manage and deploy configuration changes across different environments in a structured and efficient manner.  The Configuration Manager core module helps manage everything related to configuration. Configuration in Drupal includes settings, content types, views, fields, and other elements that define the behavior and appearance of your website.
Understanding Drupal Configuration
Before diving into Configuration Synchronization, it’s crucial to understand what constitutes “configuration” in Drupal. The configuration of a Drupal site includes site settings, content types, views, fields, and other components that define its structure and behavior. This separation between configuration and content allows for more efficient management of site elements.
Configuration Management System in Drupal
Drupal’s Configuration Management System serves as the backbone for handling configuration changes. It facilitates the export, import, and deployment of configurations between different instances of a Drupal site. This systematic approach ensures a seamless transition of settings and structures across various environments (e.g., from a development environment to a staging or production environment).
The Config file locations are mapped in the settings.php file, It is recommended to have the configuration files out of the root directory.
$settings[‘config_sync_directory’] = ‘../config/sync’;Configuration Workflow
The configuration workflow typically involves making changes on a development site, exporting those changes, and then importing them into other environments. The goal is to keep the configuration consistent across all environments to ensure a smooth and predictable user experience.
Configuration Export
You can export configuration changes using the Drupal admin interface or Drush (Drupal Shell). The exported configuration is stored in YAML files, which are human-readable and version-controlled.
In your root directory, enter the below command
drush cexThe above command gives you the list of configuration files you have worked on, which will be exported as yml files.

Once you say ‘yes’ to this command, all the configurations will be generated as yml files. You will then need to add those configurations and push them to the staging environment via Git or any version control tools.
Configuration Import
Configuration can be imported into another Drupal instance, such as a staging or production site. This process ensures that the configuration is synchronized across different environments. Importing configuration can be done through the admin interface or Drush.
Drush cim:The above command will help us import all our configurations to the staging or production environment from the development environment.

 
Once we say ‘yes’ to this command, all those configurations will be exported to the respective environment.

Review and Deployment
Leverage the Configuration Management Interface to review and selectively deploy configuration changes. This step is crucial for maintaining control over what gets applied to each environment.
Drupal provides tools to track and manage configuration changes. The Configuration Management Interface allows you to review and deploy configuration changes selectively.
This image shows how the configuration differs between the respective environments. We can find it at this location -> /admin/config/development/configuration

Configuration Synchronization Strategies
Depending on your project’s needs, you may choose different strategies for configuration synchronization. For example, you might have a single master environment where configuration changes are made and then synchronized to other environments, or you might have a more distributed approach where each environment can make and synchronize its own changes.
Centralized Master Environment
Implement a single master environment where all configuration changes are made. Changes can then be synchronized to other environments, ensuring consistency across the board.
Distributed Development
Allow each environment to make and synchronize its own configuration changes. This approach provides more autonomy to individual teams working on specific aspects of the project.
Best Practices for Configuration Synchronization
It is crucial to follow best practices for configuration synchronization, such as:
Version Control:
Use version control systems like Git to track and manage configuration changes. This facilitates collaboration among developers and provides a history of alterations.
Documentation:
Document configuration changes thoroughly. This documentation aids in understanding the purpose of each change, making it easier for developers to collaborate and troubleshoot.
Regular Testing:
Testing regularly ensures that changes won’t disrupt the live site and helps identify potential issues early in the process.
Selective Synchronization:
When deploying configurations, opt for selective synchronization to avoid unintended consequences. This allows for a more controlled and targeted application of changes.
Final Thoughts
Drupal Configuration Synchronization is extremely useful for developers to speed up their projects. By following best practices, understanding the workflow, and implementing effective strategies, you can ensure a seamless Drupal development process. Got a Drupal project in mind? Our team of Drupal experts can help you make it happen. Contact us today for a free consultation. 
 

What Developers Should Know About Postgres With Andrew Atkinson

Posted on January 30, 2024 by Michael G
In this episode, we discuss what Rails software developers should know about Postgres with Andrew Atkinson: https://www.rubberduckdevshow.com/episodes/114-what-developers-should-know-about-postgres-with-andres-atkinson/ We also discuss his new book: High Performance PostgreSQL for Rails
Posted on January 30, 2024 by Michael G
New committer: Zsolt Udvari (ports)

Oracle quietly extends Solaris 11.4 support until 2037

Posted on January 30, 2024 by Michael G
Oracle has quietly extended paid support and upgrades for Solaris 11.4 to 2037 – three years past its previous deadline – and did the same for earlier versions of the OS last year. ↫ Simon Sharwood at The Register One of the biggest “what could have beens” of the past two decades. Had Oracle not closed Solaris up after acquiring Sun, an open source Solaris might’ve been something more tangible than what it is today. Of course, Oracle gonna Oracle and they were always going to screw things up, open source or not, but had Solaris stayed open we’d have had a more concerted, centralised development effort instead of what we have now, where the open source Solaris community is working off the last OpenSolaris codebase from 14 years ago.

https://best-cpm.com/zDKd

Posted on January 29, 2024 by Michael G

Video by via Dailymotion Source To watch the movie in very high quality and resolution, click on the link below:https://best-cpm.com/zDKd#video#watch#film#movis#fun Go to Source

Decisão final sobre cassação de Moro deverá ser do TSE

Posted on January 29, 2024 by Michael G

Video by via Dailymotion Source O Tribunal Regional Eleitoral do Paraná (TRE-PR) decidirá se Sergio Moro (União Brasil) deve ou não ter o mandato cassado. Mas o caso deverá seguir para o Tribunal Superior Eleitoral, pois as partes envolvidas no processo poderão recorrer do resultado no TSE. Assista ao Jornal da Manhã completo: https://youtube.com/live/mkDm5RAxDTw Baixe…

The Sage’s Doctrine: Words of Wisdom from an Elder pa1

Posted on January 29, 2024 by Michael G

Video by via Dailymotion Source Embark on a journey through timeless wisdom with “The Sage’s Doctrine.” This insightful video unveils the profound teachings of an elder, offering pearls of wisdom that transcend generations. Delve into the essence of life through the lens of experience and embrace the valuable lessons shared by a seasoned soul. Go…

Dingdong Dantes, Ysabel Ortega at Team Firefly, makikisaya sa Manila International Film Festival…

Posted on January 29, 2024 by Michael G

Video by via Dailymotion Source 24 Oras is GMA Network’s flagship newscast, anchored by Mel Tiangco, Vicky Morales and Emil Sumangil. It airs on GMA-7 Mondays to Fridays at 6:30 PM (PHL Time) and on weekends at 5:30 PM. For more videos from 24 Oras, visit http://www.gmanews.tv/24oras. #GMAIntegratedNews #KapusoStream Breaking news and stories from the…

Sitting in freezing ice bath for two whole mission

Posted on January 29, 2024 by Michael G

Video by via Dailymotion Source Sitting in freezing ice bath for two whole mission amazing picture,amazing,picture,amazing picture 20,the amazing,picture you,amazing profile picture,amazing picture transformation gimp and photoshop,one picture million words,the amazing digital circus,amazing facts,pictures,amazing video,picture’s,profile picture,unusual picture,create a picture,instagram profile picture,picture transformation,profile picture for instagram,how to make profile picture,yellow profile picture,amazing digital circus#respect respect shortsrespect…

Project Zero 3: The Tormented online multiplayer – ps2

Posted on January 29, 2024 by Michael G

Video by via Dailymotion Source https://www.romstation.fr/multiplayerPlay Project Zero 3: The Tormented online multiplayer on Playstation 2 emulator with RomStation. Go to Source

  • Previous
  • 1
  • …
  • 626
  • 627
  • 628
  • 629
  • 630
  • 631
  • 632
  • …
  • 1,531
  • Next

Recent Posts

  • Open Source is Back
  • An easy way to develop Home Assistant integrations
  • SmartEsq has launched an AI-powered MFN Election tool
  • Open Source email Clients
  • When and how to use benchmarking

Categories

  • Android
  • Linux
  • News
  • Open Source
©2025 Open World News | Powered by Superb Themes
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT