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

Commit 2028703

Browse files
danepowellgrasmash
authored andcommitted
Correctly detect environments on ACSF. (#197)
1 parent 9411a6d commit 2028703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/docroot/sites/default/settings/base.settings.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
*/
2525
$ah_env = isset($_ENV['AH_SITE_ENVIRONMENT']) ? $_ENV['AH_SITE_ENVIRONMENT'] : NULL;
2626
$is_ah_env = (bool) $ah_env;
27-
$is_ah_prod_env = ($ah_env == 'prod');
28-
$is_ah_stage_env = ($ah_env == 'test');
27+
$is_ah_prod_env = ($ah_env == 'prod' || $ah_env == '01live');
28+
$is_ah_stage_env = ($ah_env == 'test' || $ah_env == '01test');
2929
$is_ah_dev_cloud = (!empty($_SERVER['HTTP_HOST']) && strstr($_SERVER['HTTP_HOST'], 'devcloud'));
3030
$is_ah_dev_env = (preg_match('/^dev[0-9]*$/', $ah_env) == TRUE);
3131
$is_acsf = (isset($_ENV['AH_SITE_GROUP']) && file_exists("/mnt/files/{$_ENV['AH_SITE_GROUP']}.$ah_env/files-private/sites.json"));

0 commit comments

Comments
 (0)