Commit f0a41af8 authored by Rodrigo Tapia-McClung's avatar Rodrigo Tapia-McClung

update start scripts and log level

parent abb7ce97
This diff is collapsed.
......@@ -4,7 +4,8 @@
"description": "PGserver receives, converts and serves geo-data between postgis and http-clients.",
"main": "pgserver.js",
"scripts": {
"start": "nodemon pgserver.js",
"dev": "nodemon pgserver.js",
"start": "node pgserver.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Anne Blankert, Geodan",
......@@ -15,6 +16,7 @@
"express": "^4.17.1",
"express-fileupload": "^1.1.5",
"morgan": "^1.9.1",
"nodemon": "^1.19.2",
"pg": "^7.12.1",
"swagger-jsdoc": "^3.4.0",
"swagger-ui-express": "^4.0.7"
......
......@@ -6,7 +6,11 @@ const cors = require('cors');
const app = express();
app.use(logger('dev'));
//app.use(logger('dev'));
app.use(logger('combined', {
skip: function (req, res) { return res.statusCode < 400 }
}));
app.use(cors());
app.use('/', express.static(__dirname + '/public'));
......
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