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
8b3e8ae7
Commit
8b3e8ae7
authored
Apr 03, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
f34dfb18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
get_project_config_server.js
qa_shell_script/config_server/get_project_config_server.js
+3
-2
No files found.
qa_shell_script/config_server/get_project_config_server.js
View file @
8b3e8ae7
...
@@ -36,7 +36,7 @@ app.use(bodyParser.urlencoded({ extended: false }))
...
@@ -36,7 +36,7 @@ app.use(bodyParser.urlencoded({ extended: false }))
app
.
use
(
bodyParser
.
json
())
app
.
use
(
bodyParser
.
json
())
var
attrs
=
{
var
attrs
=
{
configPath
:
"
config_file
"
,
configPath
:
"
config_file
"
,
buildCmd
:
"
command
"
,
buildCmd
:
"
command
2
"
,
gitPath
:
"
git_path
"
,
gitPath
:
"
git_path
"
,
gitGroup
:
"
gitPathHead
"
,
gitGroup
:
"
gitPathHead
"
,
host
:
"
www
"
,
host
:
"
www
"
,
...
@@ -49,7 +49,7 @@ var attrs = {
...
@@ -49,7 +49,7 @@ var attrs = {
port
:
"
port
"
,
port
:
"
port
"
,
start_command
:
""
,
start_command
:
""
,
stop_command
:
""
,
stop_command
:
""
,
command2
:
"
command
2
"
,
command2
:
"
command
"
,
node_version
:
"
node_version
"
node_version
:
"
node_version
"
}
}
var
attrComs
=
Object
.
keys
(
attrs
)
var
attrComs
=
Object
.
keys
(
attrs
)
...
@@ -235,6 +235,7 @@ admin.get('/get_project_attr/:name', async function (req, res) {
...
@@ -235,6 +235,7 @@ admin.get('/get_project_attr/:name', async function (req, res) {
let
configs
=
await
getProjectConfigPromise
();
let
configs
=
await
getProjectConfigPromise
();
let
projects
=
configs
.
projects
let
projects
=
configs
.
projects
let
pro
=
projects
[
p_name
];
let
pro
=
projects
[
p_name
];
console
.
log
(
pro
)
let
rs
=
{};
let
rs
=
{};
for
(
let
item
of
attrComs
)
{
for
(
let
item
of
attrComs
)
{
rs
[
item
]
=
pro
[
attrs
[
item
]]
rs
[
item
]
=
pro
[
attrs
[
item
]]
...
...
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