From a21daff9418ca4dc2cd6dc2f7856583bc15f9ab7 Mon Sep 17 00:00:00 2001 From: Esther Date: Mon, 22 Jun 2020 20:55:47 +0100 Subject: [PATCH] Hopefully completed it this time --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index cfd551a..3edbb1e 100644 --- a/app.js +++ b/app.js @@ -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'));