Customizing settings.php

For applications using the drupal build flavor (those based on our Drupal 7 example), automatically generates a settings.php file if not present and will always generate a settings.local.php file. This allows the Drupal site to be connected to MySQL without any additional configuration.

If you wish to customize either file, we recommend instead using the example files provided in our Drupal 7 project template. There are two: settings.php and settings.platformsh.php. The former will automatically include the latter, and all configuration is found in the settings.platformsh.php file. It will also automatically include a settings.local.php file if found so it will not conflict with your local development workflow.

note You should never commit a settings.local.php file to your repository.

If you need to add additional configuration that is specific to, such as connecting to additional services like Redis or Solr, those changes should go in the settings.platformsh.php file.

results matching ""

    No results matching ""