url fix
This commit is contained in:
parent
17845bf0a9
commit
4f814609d7
|
@ -1,6 +1,6 @@
|
||||||
module RegisteredModuleHelper
|
module RegisteredModuleHelper
|
||||||
def install_on_server(site, mod)
|
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}/")
|
uri = URI.parse("http://#{site.site_domain}/")
|
||||||
http = Net::HTTP.new(uri.host,uri.port)
|
http = Net::HTTP.new(uri.host,uri.port)
|
||||||
request = Net::HTTP::Post.new("/store/install_module")
|
request = Net::HTTP::Post.new("/store/install_module")
|
||||||
|
|
Loading…
Reference in New Issue