Hopefully completed it this time

pull/1/head
Esther 2020-06-22 20:55:47 +01:00
parent 6c98884e33
commit a21daff941
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA
1 changed files with 1 additions and 1 deletions

2
app.js
View File

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