99 problems, and production only errors are 98 of them

This commit is contained in:
terakilobyte
2015-06-16 15:41:59 -04:00
parent 9e8796a0c4
commit 7915e8a77e

View File

@ -313,7 +313,6 @@ if (process.env.NODE_ENV === 'production') {
app.emit('started', 'https://' + process.env.HOST + ':' + app.get('port'));
});
} else {
app.start = function () {
app.listen(app.get('port'), function () {
console.log(
'FreeCodeCamp server listening on port %d in %s mode',
@ -321,10 +320,6 @@ if (process.env.NODE_ENV === 'production') {
app.get('env')
);
});
};
if (require.main === module) {
app.start();
}
}
// start the server if `$ node server.js`