Open peteeveleigh opened 10 years ago
I'm not sure if this is what you're looking for but I've been doing the below which has been working well for me:
within the appropriate file for example: config.dev.php I'm just adding this config var: $env_config['is_site_on'] = 'y';
Devot-ee Has a bunch of the ExpressionEngine config variables listed here: http://devot-ee.com/ee-config-vars
I'm trying to give the is_site_on setting the same treatment as the debug 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; define('ENV_SYSTEM_ON', FALSE);
However the setting I make 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.
Do you 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?