Last active
June 21, 2021 18:05
-
-
Save Greg-Boggs/154c25e28001318e7c4306f7e8932330 to your computer and use it in GitHub Desktop.
settings.php on platform.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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