I'm using Focus Labs Config and trying to give the is_system_on setting the same treatment as the debugging preference.
So far, in config.master.php I have added;
$env_config['is_system_on'] = (ENV_SYSTEM_ON) ? 'y' : 'n' ;
Then within config.env.php, in the appropriate CASE I have (for example);
case 'staging.domain.com' :
define('ENV', 'stage');
define('ENV_FULL', 'Staging');
define('ENV_DEBUG', FALSE);
define('ENV_SYSTEM_ON', FALSE);
break;
However the system on/off setting in config.env.php seems to be ignored and the only way to turn the site on or off is to do so within the CP.
Everything else is working perfectly across local, dev, staging and production servers with different settings being used for each. It's just this extra one I can't get to work.
Does anyone have any idea why this may be and how I could overcome it so I could set the on/off status within my environment cases?