Update documentation for drush commands on website and in readme

Created on 5 July 2022, almost 2 years ago
Updated 30 April 2024, about 2 months ago

Problem/Motivation

The drush documentation is only valid for Drupal 7 and does not work on Drupal 8

Steps to reproduce

drush vset site_readonly 1
returns an error on drupal 8

Proposed resolution

add to the documentation:
drush config:set readonlymode.settings site_readonly 1 (to enable)
drush config:set readonlymode.settings site_readonly 0 (to disable)

Remaining tasks

update documentation on drupal website
update documentation in readme file

🐛 Bug report
Status

Fixed

Version

1.1

Component

Documentation

Created by

🇧🇪Belgium liezie_D

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

    • Sharique committed b9011bed on 8.x-1.x
      Issue #3294356 by sharique: Update documentation for drush commands on...
  • Status changed to Fixed 5 months ago
  • 🇮🇳India Sharique

    I updated documentation, this going to be changed again in 2.0.

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • 🇺🇸United States gintass

    README in version 8.x-1.2 still has the following commands that no longer work in Drupal 9 or 10.
    ---
    Check the status: drush vget site_readonly
    Turn on Read Only Mode: drush vset site_readonly 1
    Turn off Read Only Mode: drush vset site_readonly 0
    ---

    Following commands suggested in this post do not work either:

    drush config:set readonlymode.settings site_readonly 1 (to enable)
    drush config:set readonlymode.settings site_readonly 0 (to disable)

    I get this when I try to run them:

    site_readonly key does not exist in readonlymode.settings config. Do you want to create a new config key? (yes/no) [yes]:

  • 🇺🇸United States gintass

    The following drush commands work fine with 2.0.x-dev version installed:

    Check the status: `drush state:get readonlymode_active`
    Turn on Read Only Mode: `drush state:set readonlymode_active 1`
    Turn off Read Only Mode: `drush state:delete readonlymode_active`

Production build 0.69.0 2024