Closed klonos closed 4 years ago
I would like to be able to put the site into maintenance mode from scripts using Drush as per Drupal 7
drush vset maintenance_mode 1
I did a little digging on this and setting maintenance mode in backdrop is a state_set
so we'd need the drush state-set wrapper to get this working.
Added state-set, state-get, config-set, and config-get in https://github.com/backdrop-contrib/drush/pull/212
@TheMetMan you can now put the site in maintenance_mode with drush:
drush state-set maintenance_mode 1
This is in backdrop-drush 1.x-1.x
and will ship with drush 1.2.0
Well what service @serundeputy!!! Much obliged.
...I am trying to automate setting up my local, and ended up doing this:
...whereas I would like to be able to do something like this instead:
In Backdrop, we may also need
sget
/sset
/sdel
forstate_get()
,state_set()
,state_del()
.PR: https://github.com/backdrop-contrib/drush/pull/212