dnsmichi.at
  • 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.

My 5th Year at GitLab: Developer Advocate Journey, AI Adventures, and Finding Balance
Featured

My 5th Year at GitLab: Developer Advocate Journey, AI Adventures, and Finding Balance

Join me in my 5th year at GitLab - from ambitious Staff Developer Advocate promotion, leading AI initiatives, traveling Europe for events, and building meaningful connections. A story of growth, challenges, and the joy of working with a global remote team while staying true to personal passions.
02 Mar 2025 20 min read
Remote office upgrades 2024, part 2: Windows Gaming PC, KVM switch, 192 GB RAM for AI/LLMs
Featured

Remote office upgrades 2024, part 2: Windows Gaming PC, KVM switch, 192 GB RAM for AI/LLMs

2024 brought a new 49" monitor for efficient work but also gaming experiences. Buying a gaming PC, connecting it to the environment with a KVM switch, and then reconsider the Windows setup for containers, VMs and AI/LLMs was a fun challenge.
06 Jan 2025 12 min read
Moving to Bluesky with a custom domain handle
Featured

Moving to Bluesky with a custom domain handle

I've been exploring Bluesky as Twitter/X alternative and joined the tech community making the move 5 weeks ago. Learn how to set up your Bluesky account with a custom domain and a few tips and tricks to get started.
20 Nov 2024 5 min read
dnsmichi.at © 2025
Powered by Ghost