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

Commit 278f0c0

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

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
@@ -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

+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)