Skip to content

Instantly share code, notes, and snippets.

@Greg-Boggs
Last active June 21, 2021 18:05
Show Gist options
  • Select an option

  • Save Greg-Boggs/154c25e28001318e7c4306f7e8932330 to your computer and use it in GitHub Desktop.

Select an option

Save Greg-Boggs/154c25e28001318e7c4306f7e8932330 to your computer and use it in GitHub Desktop.
settings.php on platform.sh
<?php
// ... default drupal 9 stuff...
// Include automatic Platform.sh settings.
if (file_exists(__DIR__ . '/settings.platformsh.php')) {
require_once(__DIR__ . '/settings.platformsh.php');
}
// Include local settings. These come last so that they can override anything.
$on_platformsh = !empty($_ENV['PLATFORM_PROJECT']);
if (file_exists(__DIR__ . '/settings.local.php') && !$on_platformsh) {
require_once(__DIR__ . '/settings.local.php');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment