From bb634bd4f5b190e98158b8de80f68b9113503c1c Mon Sep 17 00:00:00 2001 From: riking Date: Thu, 6 Mar 2014 20:26:34 -0800 Subject: [PATCH] Add request_refresh to script/discourse --- script/discourse | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/discourse b/script/discourse index 4baf4562c90..85ced0fb947 100755 --- a/script/discourse +++ b/script/discourse @@ -128,6 +128,14 @@ WHERE table_schema='public' and (data_type like 'char%' or data_type like 'text% puts 'The site is now fully operable.' end + desc "request_refresh", "Ask all clients to refresh the browser" + def request_refresh + load_rails + + Discourse.request_refresh! + puts 'Requests sent. Clients will refresh on next navigation.' + end + private def load_rails