FIX: add ReadOnly hear to /srv/status
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "read_only"
|
||||
|
||||
class ForumsController < ActionController::Base
|
||||
include ReadOnly
|
||||
|
||||
before_action :check_readonly_mode
|
||||
after_action :add_readonly_header
|
||||
|
||||
def status
|
||||
if $shutdown
|
||||
render plain: 'shutting down', status: 500
|
||||
|
||||
Reference in New Issue
Block a user