Jump to content

SQL query to take website offline

Featured Replies

Posted

For my devops script to copy my production forum > test license forum I am looking for the following.
I would like to take the test forum offline after transition. Does anyone know if there is a SQL query to disable this button?

2017-12-12_16-04-45.png.85fef61a4067b0fd62c03e69e62aeca1.png

If I have that sorted, the only manual thing I need to do is to update the license with the -TESTINSTALL suffix in AdminCP.

Thank you!

UPDATE core_sys_conf_settings SET conf_value = 0 WHERE conf_key = 'site_online'

That would be the query but it's not as simple as just running that, I think.

See the run and buildDone functions in system\Dispatcher\Build.php

Yes, query only won’t do it. If the cache isn’t updated it won’t have any effect. 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.