For applications using the
drupal build flavor (those based on our Drupal 7
example), Platform.sh 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 Platform.sh-specific 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.
You should never commit a
settings.local.php file to your repository.