Skip to content

Commit 5e8802e

Browse files
Let target only acquia platform.
1 parent 946ab3d commit 5e8802e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

settings/acquia-recommended.settings.php

+9-10
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,17 @@
8585
// phpcs:ignore
8686
$site_name = EnvironmentDetector::getSiteName($site_path);
8787

88-
// Acquia platform settings (and local / CI) includes a require line
89-
// that opens database connection, hence the mysql57 settings
90-
// file should be added before platform require line.
91-
// @see: https://www.drupal.org/project/mysql57
92-
// @todo: Remove this line once acquia platform start supporting mysql 8.0
93-
if(!EnvironmentDetector::isAhIdeEnv()) {
94-
$settings_files[] = __DIR__ . "/mysql57.settings.php";
95-
}
96-
97-
// Acquia Cloud settings
88+
// Acquia Cloud settings.
9889
if (EnvironmentDetector::isAhEnv()) {
9990
try {
91+
// Acquia platform settings includes a require line
92+
// that opens database connection, hence the mysql57 settings
93+
// file should be added before platform require line.
94+
// @see: https://www.drupal.org/project/mysql57
95+
// @todo: Remove this line once acquia platform start supporting mysql 8.0
96+
if(!EnvironmentDetector::isAhIdeEnv()) {
97+
$settings_files[] = __DIR__ . "/mysql57.settings.php";
98+
}
10099
if (!EnvironmentDetector::isAcsfEnv()) {
101100
$settings_files[] = FilePaths::ahSettingsFile(EnvironmentDetector::getAhGroup(), $site_name);
102101
}

0 commit comments

Comments
 (0)