Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a variable to control is_site_on ? #34

Open
peteeveleigh opened this issue Apr 23, 2014 · 1 comment
Open

Creating a variable to control is_site_on ? #34

peteeveleigh opened this issue Apr 23, 2014 · 1 comment

Comments

@peteeveleigh
Copy link

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?

@FlyDuo
Copy link

FlyDuo commented Aug 14, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant