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

Fixes #1324: Add ah_other config split. #1331

Merged
merged 1 commit into from
Apr 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions readme/configuration-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ BLT and Config Split together make it easy to capture configuration changes in c

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

| Split | Environment
|-------|----------------------------------------------
| local | any non-Acquia, non-Travis environment
| ci | Acquia Pipelines OR Travis CI
| dev | Acquia Dev
| stage | Acquia Staging
| prod | Acquia Prod
| Split | Environment
|----------|----------------------------------------------
| local | any non-Acquia, non-Travis environment
| ci | Acquia Pipelines OR Travis CI
| dev | Acquia Dev
| stage | Acquia Staging
| prod | Acquia Prod
| ah_other | any Acquia environment not listed above

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

Expand Down
11 changes: 10 additions & 1 deletion settings/config.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
$config['config_split.config_split.stage']['status'] = FALSE;
$config['config_split.config_split.prod']['status'] = FALSE;
$config['config_split.config_split.ci']['status'] = FALSE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you also need to add:

$config['config_split.config_split.ah_other']['status'] = FALSE;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes.

$config['config_split.config_split.ah_other']['status'] = FALSE;

// Non-acquia envs.
if ($is_local_env) {
if (getenv('TRAVIS') || getenv('PIPELINE_ENV')) {
$split = 'ci';
Expand All @@ -27,7 +29,8 @@
}
}
}
else {
// Acquia only envs.
elseif ($is_ah_env) {
$config_directories['vcs'] = $config_directories['sync'];

if ($is_ah_dev_env) {
Expand All @@ -48,4 +51,10 @@
$config["$split_filename_prefix.$split"]['status'] = TRUE;
}
}
else {
$split = 'ah_other';
if (file_exists("$split_filepath_prefix.$split.yml")) {
$config["$split_filename_prefix.$split"]['status'] = TRUE;
}
}
}