mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-12-22 06:42:20 +00:00
Pretty please I completed it this time hhhhh
This commit is contained in:
parent
048fbd8021
commit
c62bdf9536
2
app.js
2
app.js
@ -17,7 +17,7 @@ app.disable('x-powered-by');
|
||||
app.set('views', path.join(__dirname, 'views'));
|
||||
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' }));
|
||||
} else {
|
||||
app.use(logger('dev'));
|
||||
|
Loading…
Reference in New Issue
Block a user