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'));