This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Commit 278f0c0 1 parent 7c0ffdc commit 278f0c0 Copy full SHA for 278f0c0
File tree 2 files changed +18
-8
lines changed
2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,14 @@ BLT and Config Split together make it easy to capture configuration changes in c
92
92
93
93
BLT automatically enables the following config splits in the following environments:
94
94
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
102
103
103
104
As a prerequisite, make sure your BLT-based project is set up to use Config Split (see section above).
104
105
Original file line number Diff line number Diff line change 12
12
$ config ['config_split.config_split.stage ' ]['status ' ] = FALSE ;
13
13
$ config ['config_split.config_split.prod ' ]['status ' ] = FALSE ;
14
14
$ config ['config_split.config_split.ci ' ]['status ' ] = FALSE ;
15
+ $ config ['config_split.config_split.ah_other ' ]['status ' ] = FALSE ;
15
16
17
+ // Non-acquia envs.
16
18
if ($ is_local_env ) {
17
19
if (getenv ('TRAVIS ' ) || getenv ('PIPELINE_ENV ' )) {
18
20
$ split = 'ci ' ;
27
29
}
28
30
}
29
31
}
30
- else {
32
+ // Acquia only envs.
33
+ elseif ($ is_ah_env ) {
31
34
$ config_directories ['vcs ' ] = $ config_directories ['sync ' ];
32
35
33
36
if ($ is_ah_dev_env ) {
48
51
$ config ["$ split_filename_prefix. $ split " ]['status ' ] = TRUE ;
49
52
}
50
53
}
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
+ }
51
60
}
You can’t perform that action at this time.
0 commit comments