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

Standardizing config split stage name. #1314

Merged
merged 1 commit into from
Apr 4, 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
2 changes: 1 addition & 1 deletion settings/blt.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
$ah_group = isset($_ENV['AH_SITE_GROUP']) ? $_ENV['AH_SITE_GROUP'] : NULL;
$is_ah_env = (bool) $ah_env;
$is_ah_prod_env = ($ah_env == 'prod' || $ah_env == '01live');
$is_ah_stage_env = ($ah_env == 'test' || $ah_env == '01test' || $ah_env == 'stage');
$is_ah_stage_env = ($ah_env == 'test' || $ah_env == '01test' || $ah_env == 'stg');
$is_ah_dev_cloud = (!empty($_SERVER['HTTP_HOST']) && strstr($_SERVER['HTTP_HOST'], 'devcloud'));
$is_ah_dev_env = (preg_match('/^dev[0-9]*$/', $ah_env) || $ah_env == '01dev');
$is_acsf = (!empty($ah_group) && file_exists("/mnt/files/$ah_group.$ah_env/files-private/sites.json"));
Expand Down
8 changes: 1 addition & 7 deletions settings/config.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,10 @@
}
}
elseif ($is_ah_stage_env) {
$split = 'test';
$split = 'stage';
if (file_exists("$split_filepath_prefix.$split.yml")) {
$config["$split_filename_prefix.$split"]['status'] = TRUE;
}
else {
$split = 'stg';
if (file_exists("$split_filepath_prefix.$split.yml")) {
$config["$split_filename_prefix.$split"]['status'] = TRUE;
}
}
}
elseif ($is_ah_prod_env) {
$split = 'prod';
Expand Down