Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
a8ab0bb8
Commit
a8ab0bb8
authored
Jan 18, 2018
by
智勇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.quantgroup.cn/QA/qa-deploy-utils
parents
7166433f
64579dde
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
get_project_config_server.js
qa_shell_script/config_server/get_project_config_server.js
+3
-1
No files found.
qa_shell_script/config_server/get_project_config_server.js
View file @
a8ab0bb8
...
@@ -88,13 +88,14 @@ admin.post('/add_new_proxy', function (req, res) {
...
@@ -88,13 +88,14 @@ admin.post('/add_new_proxy', function (req, res) {
// "http_port": http_port,
// "http_port": http_port,
// "https_port": https_port
// "https_port": https_port
// }
// }
console
.
log
(
request
)
if
(
sourcestr
!=
undefined
){
if
(
sourcestr
!=
undefined
){
var
items
=
sourcestr
.
split
(
"
|
"
);
var
items
=
sourcestr
.
split
(
"
|
"
);
if
(
items
[
1
]
==
request
[
"
ip
"
]){
if
(
items
[
1
]
==
request
[
"
ip
"
]){
res
.
send
({
msg
:
"
已经存在的配置
"
});
res
.
send
({
msg
:
"
已经存在的配置
"
});
return
return
}
else
{
}
else
{
console
.
log
(
"
update new
"
)
targetstr
=
request
[
"
namespace
"
]
+
"
|
"
+
request
[
"
ip
"
]
+
"
|
"
+
request
[
"
proxy_ports
"
][
"
http_port
"
]
+
"
|
"
+
request
[
"
proxy_ports
"
][
"
https_port
"
];
targetstr
=
request
[
"
namespace
"
]
+
"
|
"
+
request
[
"
ip
"
]
+
"
|
"
+
request
[
"
proxy_ports
"
][
"
http_port
"
]
+
"
|
"
+
request
[
"
proxy_ports
"
][
"
https_port
"
];
newstr
=
str
.
replace
(
sourcestr
,
targetstr
);
newstr
=
str
.
replace
(
sourcestr
,
targetstr
);
}
}
...
@@ -103,6 +104,7 @@ admin.post('/add_new_proxy', function (req, res) {
...
@@ -103,6 +104,7 @@ admin.post('/add_new_proxy', function (req, res) {
return
return
}
}
}
else
{
}
else
{
console
.
log
(
"
add new
"
)
newstr
=
str
+
"
"
+
request
[
"
namespace
"
]
+
"
|
"
+
request
[
"
ip
"
]
+
"
|
"
+
request
[
"
proxy_ports
"
][
"
http_port
"
]
+
"
|
"
+
request
[
"
proxy_ports
"
][
"
https_port
"
];
newstr
=
str
+
"
"
+
request
[
"
namespace
"
]
+
"
|
"
+
request
[
"
ip
"
]
+
"
|
"
+
request
[
"
proxy_ports
"
][
"
http_port
"
]
+
"
|
"
+
request
[
"
proxy_ports
"
][
"
https_port
"
];
//文件添加到这里面
//文件添加到这里面
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment