Modules & Config
Manage your Drupal site's modules, configuration, and environments.
Managing Modules
You can enable and disable modules in the Drupal admin UI under the "Extend" section. For custom modules, you can add them to your codebase and then enable them.
Configuration Management
Drupal's configuration management system allows you to export your site's configuration to YAML files. You can then commit these files to your git repository and import them into another environment.
To export your configuration, go to "Configuration > Development > Configuration synchronization" in the Drupal admin UI and click the "Export" button. To import configuration, you can use the "Import" tab.
Working with Environments
DCloud.dev provides dev, stage, and prod environments for your Drupal site. You can use the dev environment for development, the stage environment for testing, and the prod environment for your live site.
You can promote changes between environments by using git and the configuration management system. First, you would make your changes in the dev environment, export the configuration, and commit it to your git repository. Then, you would deploy your code to the stage environment and import the configuration. Finally, you would repeat the process for the prod environment.
Example Workflow
- Add a new module to your codebase in your dev environment.
- Enable the module in the Drupal admin UI.
- Configure the module as needed.
- Export the configuration.
- Commit the configuration files to your git repository.
- Deploy your code to the stage environment.
- Import the configuration in the stage environment.
- Test the changes in the stage environment.
- Deploy your code to the prod environment.
- Import the configuration in the prod environment.