This commit is contained in:
Harry Bomrah 2014-12-31 16:41:05 +08:00
parent 37acac4830
commit 4cbc7a6a0e
1 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,16 @@ module RegisteredModuleHelper
site.installed_modules << im
site.save
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
def uninstall_on_server(site, mod)