TransWikia.com

How can I programmatically change the system's status?

Craft CMS Asked by Steven Thate on May 16, 2021

I have a console controller action that needs to change the site’s status under certain conditions. I have not been able to find any documentation or even questions out there about how to do this. Is it even possible?

One Answer

There are two existing console commands you can use, ./craft on and ./craft off (on and off).

If you want/need to implement your own, take a look at the commit.

Correct answer by Oli on May 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP