99 problems, and production only errors are 98 of them
This commit is contained in:
@ -313,7 +313,6 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
app.emit('started', 'https://' + process.env.HOST + ':' + app.get('port'));
|
app.emit('started', 'https://' + process.env.HOST + ':' + app.get('port'));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
app.start = function () {
|
|
||||||
app.listen(app.get('port'), function () {
|
app.listen(app.get('port'), function () {
|
||||||
console.log(
|
console.log(
|
||||||
'FreeCodeCamp server listening on port %d in %s mode',
|
'FreeCodeCamp server listening on port %d in %s mode',
|
||||||
@ -321,10 +320,6 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
app.get('env')
|
app.get('env')
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
};
|
|
||||||
if (require.main === module) {
|
|
||||||
app.start();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// start the server if `$ node server.js`
|
// start the server if `$ node server.js`
|
||||||
|
Reference in New Issue
Block a user