From 4f814609d75c84f42ecf003401024e6d3d34757f Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 31 Dec 2014 16:13:43 +0800 Subject: [PATCH] url fix --- app/helpers/registered_module_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/registered_module_helper.rb b/app/helpers/registered_module_helper.rb index 8d34a9c..828005b 100644 --- a/app/helpers/registered_module_helper.rb +++ b/app/helpers/registered_module_helper.rb @@ -1,6 +1,6 @@ module RegisteredModuleHelper def install_on_server(site, mod) - params_to_send = {"site_token" => site.site_token, "module_name" => mod.name, "git_path" => mod.git_path, "template" => "http://localhost:3000#{mod.template.url}", "module_key" => mod.module_key,"template_filename" => mod.template.file.filename} + params_to_send = {"site_token" => site.site_token, "module_name" => mod.name, "git_path" => mod.git_path, "template" => "http://store.tp.rulingcom.com#{mod.template.url}", "module_key" => mod.module_key,"template_filename" => mod.template.file.filename} uri = URI.parse("http://#{site.site_domain}/") http = Net::HTTP.new(uri.host,uri.port) request = Net::HTTP::Post.new("/store/install_module")