Add request_refresh to script/discourse

This commit is contained in:
riking 2014-03-06 20:26:34 -08:00
parent ccd3e635d2
commit bb634bd4f5
1 changed files with 8 additions and 0 deletions

View File

@ -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.' puts 'The site is now fully operable.'
end 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 private
def load_rails def load_rails