Commit 8b3e8ae7 authored by 智勇's avatar 智勇

up

parent f34dfb18
...@@ -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: "command2",
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: "command2", 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]]
......
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