Commit 43bf5a9f by ifool

Update setup.rb

parent c468d949
......@@ -6,7 +6,7 @@ def download_server_json
config_root = File.expand_path('..', __FILE__)
git_branch = `cd #{config_root}; git rev-parse --abbrev-ref HEAD`.chop
dir_basename = File.basename config_root
server_conf_url = "http://gitlab.ikcrm.com/ikcrm_common/servers_config/raw/master/#{product_name}/#{git_branch}_#{dir_basename}/server.json"
server_conf_url = "http://gitlab.ikcrm.com/ikcrm_common/servers_config/raw/master/#{product_name}/#{git_branch}/#{dir_basename}/server.json"
puts "Use server config url: #{server_conf_url}"
system "curl #{server_conf_url} > #{config_root}/server.json"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment