dnsmichi.com
  • Home
  • About
  • Talks
  • Portfolio
  • All-remote Workspace
  • Readme
discourse

Disable read-only mode in Discourse from the rails console

  • Michael Friedrich

Michael Friedrich

10 Oct 2020 • 1 min read
Share

A Discourse instance can be set in read-only mode for backups. I had used this for a global read-only maintenance. The admin session was on one of my computers which timed out after a while.

In order to regain access to the Discourse instance, and being able to login as an administrator, I had to follow these instructions:

ssh root@server.com

cd /var/discourse
./launcher enter app

rails c

Discourse.disable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)

quit

ctrl+d

Navigate back to the site and you can login again.

Tinycast, a new macOS Spotlight alternative on steroids

Tinycast, a new macOS Spotlight alternative on steroids

Learn about Tinycast as Spotlight alternative - first setup, settings, use cases with app launcher, timezone conversation and emoji search. Migration and dotfiles automation included.
19 Sep 2026 5 min read
Recharging batteries at 1500m: Vigilius mountain resort in South Tyrol
Featured

Recharging batteries at 1500m: Vigilius mountain resort in South Tyrol

Unplugging in busy AI times is not easy. I found a unique spot in South Tyrol, only reachable by cable car, with scenic views over the dolomites, hiking, spa treatments, high quality food, and kind humans - to recharge my batteries.
04 Aug 2026 9 min read
Building an Interactive Conference Badge with Tufty 2040: A Step-by-Step Guide

Building an Interactive Conference Badge with Tufty 2040: A Step-by-Step Guide

At tech conferences, your badge is the first impression. The Tufty 2040 LCD Display badge can serve as a dynamic contact card with QR codes, making it a business card. Learn how wave and PCB animations were added for playful engagement, and how to build your own badge.
07 Mar 2026 20 min read
dnsmichi.com © 2026
Powered by Ghost