Skip to content

Commit

Permalink
Fixed dev env detection on ACSF. (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored and grasmash committed Jun 30, 2016
1 parent 00cb9ab commit 519e141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/docroot/sites/default/settings/base.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$is_ah_prod_env = ($ah_env == 'prod' || $ah_env == '01live');
$is_ah_stage_env = ($ah_env == 'test' || $ah_env == '01test');
$is_ah_dev_cloud = (!empty($_SERVER['HTTP_HOST']) && strstr($_SERVER['HTTP_HOST'], 'devcloud'));
$is_ah_dev_env = (preg_match('/^dev[0-9]*$/', $ah_env) == TRUE);
$is_ah_dev_env = (preg_match('/^dev[0-9]*$/', $ah_env) || $ah_env == '01dev');
$is_acsf = (isset($_ENV['AH_SITE_GROUP']) && file_exists("/mnt/files/{$_ENV['AH_SITE_GROUP']}.$ah_env/files-private/sites.json"));
$is_local_env = !$is_ah_env;

Expand Down

0 comments on commit 519e141

Please sign in to comment.