Skip to main content
How to find active config sync directory path in Drupal

You have set a path for a configuration directory in your settings.php file but is it taking the correct path or not. Here is a simple step to validate that instead of exporting or import configurations and checking it manually. It will be very much easier to check the following using "drush" in your local as well as on your servers.

 

You just need to execute the following command to check the active path which is used for your config sync directory :

 

  • drush php
  • >>> config_get_config_directory('sync')
  • Desired Output => "mnt/www/html/project/config/sync" 

 

Published on