Commit 40e6200d authored by daidekun's avatar daidekun

调整获取ui配置的方式

parent 7fdf670c
......@@ -28,12 +28,13 @@ def prepare_luaui(systemNames, contextDir) {
sh "cd /home/quant_group/config_repository/lua-ui; git pull; cd -"
sh "cp -rf /home/quant_group/config_repository/lua-ui/lua/*.lua ${contextDir}"
if (systemNames.contains("--")) {
sh "cp -rf /home/quant_group/config_repository/lua-ui/${systemNames}.vh.conf ${contextDir}"
} else {
sh "cp -rf /home/quant_group/config_repository/lua-ui/default.vh.conf ${contextDir}"
isVhFileExist = fileExists '/home/quant_group/config_repository/lua-ui/nginx/${systemNames}.vh.conf'
if (isVhFileExist) {
sh "cp -rf /home/quant_group/config_repository/lua-ui/nginx/${systemNames}.vh.conf ${contextDir}"
}else{
sh "cp -rf /home/quant_group/config_repository/lua-ui/nginx/default.vh.conf ${contextDir}"
}
arrSystem = systemNames.split("--")
for (systemName in arrSystem) {
sh "cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config.js"
......
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