mirror of
https://github.com/discourse/discourse.git
synced 2025-06-20 06:58:20 +08:00
Add request_refresh to script/discourse
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user