For applications using the
drupal build flavor (those based on our
), 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:
. 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.
If you need to add additional configuration that is specific to Platform.sh, such as connecting to additional services like
, those changes should go in the