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

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.

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
One year worth for ten: My 6th year at GitLab
Featured

One year worth for ten: My 6th year at GitLab

My 6th year at GitLab felt like “one year worth for ten”: embedded DevSecOps homelab experiments, AI agent workflows, a six‑city DACH roadshow, a Principal promotion, and a new way of working. This reflection captures what happened, what I learned, and why I stay.
02 Mar 2026 22 min read
From manual Docker/Nginx proxy to Traefik and Ansible: Modernizing my Ghost blog stack in 2026
Featured

From manual Docker/Nginx proxy to Traefik and Ansible: Modernizing my Ghost blog stack in 2026

This blog has run Ghost in Docker since 2020, manually deployed. In 2026 I set the goal to use Traefik as a modern reverse proxy. Learn the first steps with Traefik, Docker and Ghost, and how to automate with Ansible — including domain redirects, TLS certificates, version pinning, and backups.
23 Feb 2026 23 min read
dnsmichi.com © 2026
Powered by Ghost