Commit f058bf12 authored by 智勇's avatar 智勇

add nodemon

parent 4b5f2fe7
...@@ -266,8 +266,8 @@ admin.get('/get_attr_from_project/:name/:attr', async function (req, res) { ...@@ -266,8 +266,8 @@ admin.get('/get_attr_from_project/:name/:attr', async function (req, res) {
} else { } else {
p_name = req.params.name p_name = req.params.name
} }
let pro = await getProjectConfigPromiseByDb({project_name:req.params.name}); let pro = await getProjectConfigPromiseByDb({ project_name: req.params.name });
let val = pro[0][req.params.attr]; let val = pro[0][req.params.attr];
res.send(val); res.send(val);
}); });
......
{ {
"name": "config_server", "name": "config_server",
"version": "1.0.0", "version": "1.0.0",
"description": "",
"main": "get_project_config.js", "main": "get_project_config.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon get_project_config_server"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
"express": "^4.16.2", "express": "^4.16.2",
"mongodb": "^2.2.33", "mongodb": "^2.2.33",
"mongoose": "^5.0.11", "mongoose": "^5.0.11",
"nodemon": "^1.18.3",
"pm2": "^2.7.2", "pm2": "^2.7.2",
"request": "^2.83.0" "request": "^2.83.0"
} },
} "devDependencies": {},
"description": ""
}
\ No newline at end of file
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