# 当 'discourse enable\_readonly' 启用时，站点自动退出只读模式。

**URL:** <https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844>\
**Category:** Development\
**Tags:** read-only\
**Created:** [2024 年2 月 27 日 05:27 UTC](https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844 "2024-02-27T05:27:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![RhysGoodwin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rhysgoodwin/32/195363_2.png) [@RhysGoodwin](https://meta.discourse.org/u/RhysGoodwin)\
**Post date:** [2024 年2 月 27 日 18:59 UTC](https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844/5 "2024-02-27T18:59:17Z")

</div>

谢谢 Jay。我怀疑我正在采用一种 XY 方法来解决这个问题。我将查看部署后迁移。感谢您提供的信息。

我想另一个选择可能是通过 API 调用激活 RO。

---

_[View the full topic](https://meta.discourse.org/t/site-automatically-exits-read-only-mode-when-enabled-by-discourse-enable-readonly/296844)._
