This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Commit 7a9522b 1 parent 7c0ffdc commit 7a9522b Copy full SHA for 7a9522b
File tree 2 files changed +17
-8
lines changed
2 files changed +17
-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 13
13
$ config ['config_split.config_split.prod ' ]['status ' ] = FALSE ;
14
14
$ config ['config_split.config_split.ci ' ]['status ' ] = FALSE ;
15
15
16
+ // Non-acquia envs.
16
17
if ($ is_local_env ) {
17
18
if (getenv ('TRAVIS ' ) || getenv ('PIPELINE_ENV ' )) {
18
19
$ split = 'ci ' ;
27
28
}
28
29
}
29
30
}
30
- else {
31
+ // Acquia only envs.
32
+ elseif ($ is_ah_env ) {
31
33
$ config_directories ['vcs ' ] = $ config_directories ['sync ' ];
32
34
33
35
if ($ is_ah_dev_env ) {
48
50
$ config ["$ split_filename_prefix. $ split " ]['status ' ] = TRUE ;
49
51
}
50
52
}
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
+ }
51
59
}
You can’t perform that action at this time.
0 commit comments