Pretty please I completed it this time hhhhh

This commit is contained in:
Esther 2020-06-22 21:07:05 +01:00
parent 048fbd8021
commit c62bdf9536
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA

2
app.js
View File

@ -17,7 +17,7 @@ app.disable('x-powered-by');
app.set('views', path.join(__dirname, 'views')); app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'pug'); app.set('view engine', 'pug');
if (process.env.ENV == 'production') { if (process.env.NODE_ENV === 'production') {
app.use(logger('common', { skip: function(req, res) { return res.statusCode < 400 }, stream: __dirname + '/../morgan.log' })); app.use(logger('common', { skip: function(req, res) { return res.statusCode < 400 }, stream: __dirname + '/../morgan.log' }));
} else { } else {
app.use(logger('dev')); app.use(logger('dev'));