fix
This commit is contained in:
parent
37acac4830
commit
4cbc7a6a0e
|
@ -15,6 +15,16 @@ module RegisteredModuleHelper
|
||||||
site.installed_modules << im
|
site.installed_modules << im
|
||||||
site.save
|
site.save
|
||||||
end
|
end
|
||||||
|
restart_remote_server(site)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def restart_remote_server(site)
|
||||||
|
uri = URI.parse("http://#{site.site_domain}/")
|
||||||
|
http = Net::HTTP.new(uri.host,uri.port)
|
||||||
|
request = Net::HTTP::Post.new("/store/restart_server_after_install")
|
||||||
|
request.body = params_to_send.to_query
|
||||||
|
response = http.request(request)
|
||||||
end
|
end
|
||||||
|
|
||||||
def uninstall_on_server(site, mod)
|
def uninstall_on_server(site, mod)
|
||||||
|
|
Loading…
Reference in New Issue