明树Git Lab

Commit b368dd38 authored by zfp1's avatar zfp1

1

parent 81e4bce3
Pipeline #111870 passed with stage
in 4 seconds
This diff is collapsed.
......@@ -30,7 +30,7 @@ module.exports = async (req, res, next) => {
}
/* --------------3. 记录所有进来的日志,是否记录响应的值有待 */
if(!['/resource/listResourceAll'].includes(req.path)) {
if(!['/resource/listResourceAll', '/project/saveJuece'].includes(req.path)) {
requestLogModule.createRequestLog({
url: req.baseUrl + req.path,
params: JSON.stringify({
......
......@@ -34,8 +34,8 @@ app.all('*', function (req, res, next) {
app.use(compress());
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(express.json({limit: '500mb'}));
app.use(express.urlencoded({ extended: false, limit: '500mb' }));
app.use(express.static('public'));
app.use(logger('dev'));
......@@ -72,6 +72,6 @@ app.use(function (err, req, res, next) {
const server = require('http').createServer(app);
server.listen(process.env.PORT || 3000, function () {
server.listen(process.env.PORT || 3001, function () {
console.log(`****** server is listening : ${process.env.PORT} || 3000`);
});
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