Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 7a9522b

Browse files
committed
Fixes #1324: Add ah_other config split.
1 parent 7c0ffdc commit 7a9522b

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

readme/configuration-management.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,14 @@ BLT and Config Split together make it easy to capture configuration changes in c
9292

9393
BLT automatically enables the following config splits in the following environments:
9494

95-
| Split | Environment
96-
|-------|----------------------------------------------
97-
| local | any non-Acquia, non-Travis environment
98-
| ci | Acquia Pipelines OR Travis CI
99-
| dev | Acquia Dev
100-
| stage | Acquia Staging
101-
| prod | Acquia Prod
95+
| Split | Environment
96+
|----------|----------------------------------------------
97+
| local | any non-Acquia, non-Travis environment
98+
| ci | Acquia Pipelines OR Travis CI
99+
| dev | Acquia Dev
100+
| stage | Acquia Staging
101+
| prod | Acquia Prod
102+
| ah_other | any Acquia environment not listed above
102103

103104
As a prerequisite, make sure your BLT-based project is set up to use Config Split (see section above).
104105

settings/config.settings.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
$config['config_split.config_split.prod']['status'] = FALSE;
1414
$config['config_split.config_split.ci']['status'] = FALSE;
1515

16+
// Non-acquia envs.
1617
if ($is_local_env) {
1718
if (getenv('TRAVIS') || getenv('PIPELINE_ENV')) {
1819
$split = 'ci';
@@ -27,7 +28,8 @@
2728
}
2829
}
2930
}
30-
else {
31+
// Acquia only envs.
32+
elseif ($is_ah_env) {
3133
$config_directories['vcs'] = $config_directories['sync'];
3234

3335
if ($is_ah_dev_env) {
@@ -48,4 +50,10 @@
4850
$config["$split_filename_prefix.$split"]['status'] = TRUE;
4951
}
5052
}
53+
else {
54+
$split = 'ah_other';
55+
if (file_exists("$split_filepath_prefix.$split.yml")) {
56+
$config["$split_filename_prefix.$split"]['status'] = TRUE;
57+
}
58+
}
5159
}

0 commit comments

Comments
 (0)