Add request_refresh to script/discourse
This commit is contained in:
parent
ccd3e635d2
commit
bb634bd4f5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue