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

Commit da25a63

Browse files
committed
Fixes #1324: Add ah_other config split. (#1331)
1 parent db4930c commit da25a63

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

readme/configuration-management.md

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

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

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

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

settings/config.settings.php

+10-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
$config['config_split.config_split.stage']['status'] = FALSE;
1313
$config['config_split.config_split.prod']['status'] = FALSE;
1414
$config['config_split.config_split.ci']['status'] = FALSE;
15+
$config['config_split.config_split.ah_other']['status'] = FALSE;
1516

17+
// Non-acquia envs.
1618
if ($is_local_env) {
1719
if (getenv('TRAVIS') || getenv('PIPELINE_ENV')) {
1820
$split = 'ci';
@@ -27,7 +29,8 @@
2729
}
2830
}
2931
}
30-
else {
32+
// Acquia only envs.
33+
elseif ($is_ah_env) {
3134
$config_directories['vcs'] = $config_directories['sync'];
3235

3336
if ($is_ah_dev_env) {
@@ -48,4 +51,10 @@
4851
$config["$split_filename_prefix.$split"]['status'] = TRUE;
4952
}
5053
}
54+
else {
55+
$split = 'ah_other';
56+
if (file_exists("$split_filepath_prefix.$split.yml")) {
57+
$config["$split_filename_prefix.$split"]['status'] = TRUE;
58+
}
59+
}
5160
}

0 commit comments

Comments
 (0)