mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 08:12:19 +00:00
AAAAAAAAAaaaa please I hope I completed it this time
This commit is contained in:
parent
a21daff941
commit
048fbd8021
2
app.js
2
app.js
@ -17,7 +17,7 @@ app.disable('x-powered-by');
|
|||||||
app.set('views', path.join(__dirname, 'views'));
|
app.set('views', path.join(__dirname, 'views'));
|
||||||
app.set('view engine', 'pug');
|
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' }));
|
app.use(logger('common', { skip: function(req, res) { return res.statusCode < 400 }, stream: __dirname + '/../morgan.log' }));
|
||||||
} else {
|
} else {
|
||||||
app.use(logger('dev'));
|
app.use(logger('dev'));
|
||||||
|
Loading…
Reference in New Issue
Block a user