From 048fbd80218c7585ee72a1d1c1fb59bd75146b52 Mon Sep 17 00:00:00 2001 From: Esther Date: Mon, 22 Jun 2020 20:58:45 +0100 Subject: [PATCH] AAAAAAAAAaaaa please I hope I completed it this time --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 3edbb1e..5097010 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 (process.env.ENV == 'production') { app.use(logger('common', { skip: function(req, res) { return res.statusCode < 400 }, stream: __dirname + '/../morgan.log' })); } else { app.use(logger('dev'));